<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIResponder/keyboardAnimationDurationUserInfoKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIKeyboardAnimationDurationUserInfoKey"
  },
  "title" : "keyboardAnimationDurationUserInfoKey"
}
-->

# keyboardAnimationDurationUserInfoKey

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

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

## Discussion

The value for this key is an <doc://com.apple.documentation/documentation/Foundation/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`](/documentation/UIKit/UIResponder/keyboardAnimationCurveUserInfoKey).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)