didResignKeyNotification
A notification that posts whenever a window resigns its status as main window.
Declaration
nonisolated class let didResignKeyNotification: NSNotification.NameDiscussion
The notification object is the window that resigned its main window status. This notification doesn’t contain a userInfo dictionary.
The system posts this notification on the main actor. In iOS 15 and later, the system posts this notification when the window is no longer the key window of its scene. In iOS 14 and earlier, the system posts this notification when the window is no longer the key window of the app.