---
title: canBecomeKeyView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/canbecomekeyview
---

# canBecomeKeyView

A Boolean value indicating whether the view can become key view.

## Declaration

```swift
var canBecomeKeyView: Bool { get }
```

## Discussion

Discussion When the value of this property is true, the view can become the key view. In order to become the key view, the view must be visible, it must be installed in a window that supports keyboard entry, and the view’s acceptsFirstResponder method must return true.

## See Also

### Managing the Key-View Loop

- [needsPanelToBecomeKey](appkit/nsview/needspaneltobecomekey.md)
- [nextKeyView](appkit/nsview/nextkeyview.md)
- [nextValidKeyView](appkit/nsview/nextvalidkeyview.md)
- [previousKeyView](appkit/nsview/previouskeyview.md)
- [previousValidKeyView](appkit/nsview/previousvalidkeyview.md)
