resignKey()
Tells the window that it’s no longer the key window.
Declaration
func resignKey()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.