---
title: autorecalculatesKeyViewLoop
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/autorecalculateskeyviewloop
---

# autorecalculatesKeyViewLoop

A Boolean value that indicates whether the window automatically recalculates the key view loop when views are added.

## Declaration

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

## Discussion

Discussion The value of this property is true if the window automatically recalculates the key view loop when views are added; otherwise, false. If autorecalculatesKeyViewLoop is false, the client code must update the key view loop manually or call recalculateKeyViewLoop() to have the window recalculate it.

## See Also

### Managing the Key View Loop

- [selectKeyView(preceding:)](appkit/nswindow/selectkeyview(preceding:).md)
- [selectKeyView(following:)](appkit/nswindow/selectkeyview(following:).md)
- [selectPreviousKeyView(_:)](appkit/nswindow/selectpreviouskeyview(_:).md)
- [selectNextKeyView(_:)](appkit/nswindow/selectnextkeyview(_:).md)
- [keyViewSelectionDirection](appkit/nswindow/keyviewselectiondirection.md)
- [recalculateKeyViewLoop()](appkit/nswindow/recalculatekeyviewloop().md)
