Posted immediately after a change in the keyboard’s frame.
- iOS 5.0+
- Mac Catalyst 13.0+
The notification object is
userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the
Responding to Keyboard Notifications
class let keyboardIsLocalUserInfoKey: String
The key for an
NSNumber object containing a Boolean that identifies whether the keyboard belongs to the current app. With multitasking on iPad, all visible apps are notified when the keyboard appears and disappears. The value of this key is
true for the app that caused the keyboard to appear and
false for any other apps.