Simple wrap up for UIKeyboardNotification events
During wwdc2021 event apple announce a keyboard layout guide. This new API does the same thing in a more elegant and native way.
If you target your app for iOS 15 and above, you better use this API for setup keyboard avoidance.
The framework introduces a KeyboardObserver object with helper methods that simplify working with UIKeyboardNotification data.
self.observationToken = KeyboardObserver.addObserver { event in
if case let .willShow(data) = event {
// process KeyboardManager.Data struct
}
}
https://github.com/alphatroya/KeyboardManager
in the "Choose Package Repository" dialog.Alexey Korolev, [email protected] Vlad Zaicev, [email protected]
link |
Stars: 1 |
Last commit: 51 weeks ago |
Merge #52 by @Vladzzzzz
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics