Skip to content

Keyboard notifications

Latest
Compare
Choose a tag to compare
@allen-zeng allen-zeng released this 07 May 14:00
· 15 commits to master since this release

This release adds all the events from the system keyboard events:

  • UIKeyboardWillShowNotification
  • UIKeyboardDidShowNotification
  • UIKeyboardWillHideNotification
  • UIKeyboardDidHideNotification

To use them, update your Podfile to pod 'SwiftNotifications/UIKeyboard', and you're away!

These keyboard events are deserializable only, meaning that they cannot be posted by calling NotificationCenter.default.post. The protocol SerializableNotification has been split to better reflect the serialization and deserialization aspects. A combined protocol SwiftNotification is created. Custom notifications that require both serialization and deserialization can adopt to SwiftNotification as a shorthand.