---
title: followsUndockedKeyboard
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uikeyboardlayoutguide/followsundockedkeyboard
---

# followsUndockedKeyboard

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

## Declaration

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

## Discussion

Discussion The default value is false; the guide tracks the keyboard only when docked. When the keyboard is off screen or undocked, the guide’s topAnchor matches the bottomAnchor of safeAreaLayoutGuide. To follow all keyboard anchors even when undocked or floating, set followsUndockedKeyboard to true.
