https://github.com/gavinmn/keyboardattachedview
A method to attach a view to the keyboard in SwiftUI that tracks it on `.scrollDismissesKeyboard(.interactively)`
https://github.com/gavinmn/keyboardattachedview
Last synced: about 1 year ago
JSON representation
A method to attach a view to the keyboard in SwiftUI that tracks it on `.scrollDismissesKeyboard(.interactively)`
- Host: GitHub
- URL: https://github.com/gavinmn/keyboardattachedview
- Owner: gavinmn
- Created: 2024-08-21T19:38:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T05:13:06.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T08:47:50.518Z (about 1 year ago)
- Language: Swift
- Size: 9.77 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo demonstrates using a binding to update an offset value that follows the top of the keyboard even during interactive dismissal.
Credit to https://techhub.social/@brandonhorst for code contributions and bug fixes and to https://mastodon.social/@erichoracek for the approach
https://github.com/user-attachments/assets/e6c790ae-d85f-49a2-bfc2-9a0807cc3b1e