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

# keyboardFrameBeginUserInfoKey

A user info key to retrieve the keyboard’s frame at the beginning of its animation.

```
nonisolated class let keyboardFrameBeginUserInfoKey: String
```

## Discussion

The value for this key is an <doc://com.apple.documentation/documentation/Foundation/NSValue> object that contains a <doc://com.apple.documentation/documentation/CoreFoundation/CGRect> for identifying the frame rectangle of the keyboard (in the screen’s coordinate space) before animating the keyboard. The frame rectangle reflects the current orientation of the device.

The keyboard’s frame uses the screen’s coordinate space, which is different than the coordinate space of your views. Although they might sometimes match, such as when your app is full screen, they might be different when your app isn’t full screen, such as in Split View, Slide Over, and Stage Manager. This means you need to account for this difference by converting the keyboard’s frame from the screen’s coordinate space to that of your views. For an example of how to handle this conversion, see [`keyboardFrameEndUserInfoKey`](/documentation/UIKit/UIResponder/keyboardFrameEndUserInfoKey).

---

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)