---
title: keyboardAnimationCurveUserInfoKey
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiresponder/keyboardanimationcurveuserinfokey
---

# keyboardAnimationCurveUserInfoKey

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

## Declaration

```swift
nonisolated class let keyboardAnimationCurveUserInfoKey: String
```

## Discussion

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

- [keyboardAnimationDurationUserInfoKey](uikit/uiresponder/keyboardanimationdurationuserinfokey.md)
- [keyboardDidChangeFrameNotification](uikit/uiresponder/keyboarddidchangeframenotification.md)
- [keyboardDidHideNotification](uikit/uiresponder/keyboarddidhidenotification.md)
- [keyboardDidShowNotification](uikit/uiresponder/keyboarddidshownotification.md)
- [keyboardFrameBeginUserInfoKey](uikit/uiresponder/keyboardframebeginuserinfokey.md)
- [keyboardFrameEndUserInfoKey](uikit/uiresponder/keyboardframeenduserinfokey.md)
- [keyboardIsLocalUserInfoKey](uikit/uiresponder/keyboardislocaluserinfokey.md)
- [keyboardWillChangeFrameNotification](uikit/uiresponder/keyboardwillchangeframenotification.md)
- [keyboardWillHideNotification](uikit/uiresponder/keyboardwillhidenotification.md)
- [keyboardWillShowNotification](uikit/uiresponder/keyboardwillshownotification.md)
