---
title: "customWindowsToExitFullScreen(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindowdelegate/customwindowstoexitfullscreen(for:)"
---

# customWindowsToExitFullScreen(for:)

Called when the window is about to exit full-screen mode.

## Declaration

```swift
@MainActor optional func customWindowsToExitFullScreen(for window: NSWindow) -> [NSWindow]?
```

## Parameters

- `window`: The window to exit full-screen mode.

## Return Value

Return Value An array of windows involved in the animation out of full-screen mode for window; otherwise nil.

## Discussion

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:)](appkit/nswindowdelegate/customwindowstoenterfullscreen(for:).md)
- [customWindowsToEnterFullScreen(for:on:)](appkit/nswindowdelegate/customwindowstoenterfullscreen(for:on:).md)
- [window(_:startCustomAnimationToEnterFullScreenWithDuration:)](appkit/nswindowdelegate/window(_:startcustomanimationtoenterfullscreenwithduration:).md)
- [window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)](appkit/nswindowdelegate/window(_:startcustomanimationtoenterfullscreenon:withduration:).md)
- [windowDidFailToEnterFullScreen(_:)](appkit/nswindowdelegate/windowdidfailtoenterfullscreen(_:).md)
- [window(_:startCustomAnimationToExitFullScreenWithDuration:)](appkit/nswindowdelegate/window(_:startcustomanimationtoexitfullscreenwithduration:).md)
- [windowDidFailToExitFullScreen(_:)](appkit/nswindowdelegate/windowdidfailtoexitfullscreen(_:).md)
