windowDidBecomeKey(_:)
Tells the delegate that the window has become the key window.
Declaration
@MainActor optional func windowDidBecomeKey(_ notification: Notification)Parameters
- notification:
A notification named Didbecomekeynotification.
Discussion
You can retrieve the window object in question by sending object to notification.