Contents

keyboardAnimationCurveUserInfoKey

A user info key to retrieve the animation curve that the system uses to animate the keyboard onto or off the screen.

Declaration

nonisolated class let keyboardAnimationCurveUserInfoKey: String

Discussion

The value for this key is an NSNumber object that contains a UIView.AnimationCurve constant used to determine how the system animates the keyboard onto or off the screen. You can use this value to match the animation of the keyboard in your own animations.

Before using this value, convert the animation curve constant to UIView.AnimationOptions, which you can pass to one of UIKit’s animation methods, such as animate(withDuration:animations:completion:).

See Also

Constants