<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindowDelegate/window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSWindowDelegate(im)window:startCustomAnimationToEnterFullScreenOnScreen:withDuration:"
  },
  "title" : "window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)"
}
-->

# window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)

This method is called to start the window animation into full-screen mode, including transitioning to a new space.

```
@MainActor optional func window(_ window: NSWindow, startCustomAnimationToEnterFullScreenOn screen: NSScreen, withDuration duration: TimeInterval)
```

## Parameters

`window`

The window to enter full-screen mode.

`screen`

The display screen on which the window will enter 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 [`customWindowsToEnterFullScreen(for:)`](/documentation/AppKit/NSWindowDelegate/customWindowsToEnterFullScreen(for:)) returns non-`nil`. If [`window(_:startCustomAnimationToEnterFullScreenWithDuration:)`](/documentation/AppKit/NSWindowDelegate/window(_:startCustomAnimationToEnterFullScreenWithDuration:)) and this method are both implemented, this method is called.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)