customWindowsToExitFullScreen(for:)
Called when the window is about to exit full-screen mode.
Declaration
@MainActor optional func customWindowsToExitFullScreen(for window: NSWindow) -> [NSWindow]?Parameters
- window:
The window to exit full-screen mode.
Return Value
An array of windows involved in the animation out of full-screen mode for window; otherwise nil.
Discussion
This method lets the window delegate customize the animation when the window is about to exit full-screen mode by providing a custom window or windows containing layers or other effects. If an you do not want to perform custom animation, you can omit the implementation of this method, or it can return nil.
See Also
Custom Full-Screen Presentation Animations
customWindowsToEnterFullScreen(for:)customWindowsToEnterFullScreen(for:on:)window(_:startCustomAnimationToEnterFullScreenWithDuration:)window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)windowDidFailToEnterFullScreen(_:)window(_:startCustomAnimationToExitFullScreenWithDuration:)windowDidFailToExitFullScreen(_:)