<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIKeyboardLayoutGuide/followsUndockedKeyboard",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIKeyboardLayoutGuide(py)followsUndockedKeyboard"
  },
  "title" : "followsUndockedKeyboard"
}
-->

# followsUndockedKeyboard

A Boolean value that determines if the layout guide tracks the keyboard when it’s undocked from the bottom of the screen.

```
var followsUndockedKeyboard: Bool { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/false>; the guide tracks the keyboard only when docked. When the keyboard is off screen or undocked, the guide’s [`topAnchor`](/documentation/UIKit/UILayoutGuide/topAnchor) matches the [`bottomAnchor`](/documentation/UIKit/UILayoutGuide/bottomAnchor) of [`safeAreaLayoutGuide`](/documentation/UIKit/UIView/safeAreaLayoutGuide). To follow all keyboard anchors even when undocked or floating, set [`followsUndockedKeyboard`](/documentation/UIKit/UIKeyboardLayoutGuide/followsUndockedKeyboard) to <doc://com.apple.documentation/documentation/Swift/true>.

---

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)