windowDidChangeScreen(_:)
Tells the delegate that the window has changed screens.
Declaration
@MainActor optional func windowDidChangeScreen(_ notification: Notification)Parameters
- notification:
A notification named Didchangescreennotification.
Discussion
You can retrieve the NSWindow object in question by sending object to notification.