---
title: isKeyWindow
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwindow/iskeywindow
---

# isKeyWindow

A Boolean value that indicates whether the window is the key window.

## Declaration

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

## Discussion

Discussion In iOS 15 and later, the value of this property is true when the window is the key window of its scene. In iOS 14 and earlier, the value of this property is true when the window is the key window in the app. The key window receives keyboard and other non-touch-related events. Only one window at a time may be the key window.

## See Also

### Making windows key

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