window(_:startCustomAnimationToExitFullScreenWithDuration:)
This method is called to start the window animation out of full-screen mode, including transitioning back to the desktop space.
Declaration
@MainActor optional func window(_ window: NSWindow, startCustomAnimationToExitFullScreenWithDuration duration: TimeInterval)Parameters
- window:
The window to exit to full-screen mode.
- duration:
The duration of the presentation change.
Discussion
You can implement this method to perform custom animation with the given duration to be in sync with the system animation.
Special Considerations
This method is called only if customWindowsToExitFullScreen(for:) returns non-nil.
See Also
Custom Full-Screen Presentation Animations
customWindowsToEnterFullScreen(for:)customWindowsToEnterFullScreen(for:on:)window(_:startCustomAnimationToEnterFullScreenWithDuration:)window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)windowDidFailToEnterFullScreen(_:)customWindowsToExitFullScreen(for:)windowDidFailToExitFullScreen(_:)