---
title: resignKey()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiwindow/resignkey()
---

# resignKey()

Tells the window that it’s no longer the key window.

## Declaration

```swift
func resignKey()
```

## Discussion

Discussion Never call this method directly. The system calls this method and posts didResignKeyNotification to let the window know when it’s no longer the key window. The default implementation of this method does nothing, but subclasses can override it and use it to perform tasks related to resigning the key window status. In iOS 15 and later, the system calls this method when the window is no longer the key window in its scene. In iOS 14 and earlier, the system calls this method when the window is no longer the key window in the app.

## See Also

### Making windows key

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