---
title: keyboardAnimationDurationUserInfoKey
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiresponder/keyboardanimationdurationuserinfokey
---

# keyboardAnimationDurationUserInfoKey

A user info key to retrieve the duration of the keyboard animation in seconds.

## Declaration

```swift
nonisolated class let keyboardAnimationDurationUserInfoKey: String
```

## Discussion

Discussion The value for this key is an NSNumber object containing a double that represents the duration of the keyboard animation in seconds. You can use this value to match the animation of the keyboard in your own animations. For an example of how to match the keyboard’s animation, see keyboardAnimationCurveUserInfoKey.

## See Also

### Constants

- [keyboardAnimationCurveUserInfoKey](uikit/uiresponder/keyboardanimationcurveuserinfokey.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)
