<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWindowAnimationBehavior"
  },
  "title" : "NSWindow.AnimationBehavior"
}
-->

# NSWindow.AnimationBehavior

Constants that control the automatic window animation behavior windows use when ordering to the front or out of view.

```
enum AnimationBehavior
```

## Topics

### Constants

[`NSWindow.AnimationBehavior.default`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/default)

The automatic animation that’s appropriate to the window type. This is the default.

[`NSWindow.AnimationBehavior.none`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/none)

No automatic animation used. This may be useful when you perform your own window animation.

[`NSWindow.AnimationBehavior.documentWindow`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/documentWindow)

The animation behavior that’s appropriate to the document window style.

[`NSWindow.AnimationBehavior.utilityWindow`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/utilityWindow)

The animation behavior that’s appropriate to the utility window style.

[`NSWindow.AnimationBehavior.alertPanel`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/alertPanel)

The animation behavior that’s appropriate to the alert window style.



---

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)