windowWillMiniaturize(_:)
Tells the delegate that the window is about to be minimized.
Declaration
@MainActor optional func windowWillMiniaturize(_ notification: Notification)Parameters
- notification:
A notification named Willminiaturizenotification.
Discussion
You can retrieve the NSWindow object in question by sending object to notification.