Skip to content

Commit

Permalink
feat: Dismiss iOS keyboard (#63)
Browse files Browse the repository at this point in the history
* build: Capture overlooked lock file changes

These lock files changes originate from an earlier dependency addition.

* feat: Allow dismissing the iOS virtual keyboard

iOS apps generally allow dismissing the virtual keyboard through swiping
downward in a scroll view. Enabling this in the editor improves the
reading experience, allowing users to view their content without the
keyboard occupying a large portion of the screen.
  • Loading branch information
dcalhoun authored Jan 23, 2025
1 parent 6527179 commit f8c5c41
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public final class EditorViewController: UIViewController, GutenbergEditorContro
config.selectionGranularity = .character

self.webView = GBWebView(frame: .zero, configuration: config)
self.webView.scrollView.keyboardDismissMode = .interactive

super.init(nibName: nil, bundle: nil)
}
Expand Down
Loading

0 comments on commit f8c5c41

Please sign in to comment.