---
title: canBecomeKey
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwindow/canbecomekey
---

# canBecomeKey

A Boolean value that indicates whether the window can become the key window.

## Declaration

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

## Discussion

Discussion The default value is true. To indicate that the window can’t become the key window, override canBecomeKey and return false.

## See Also

### Making windows key

- [isKeyWindow](uikit/uiwindow/iskeywindow.md)
- [makeKeyAndVisible()](uikit/uiwindow/makekeyandvisible().md)
- [makeKey()](uikit/uiwindow/makekey().md)
- [becomeKey()](uikit/uiwindow/becomekey().md)
- [resignKey()](uikit/uiwindow/resignkey().md)
