<!--
{
  "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

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

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

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

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

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

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

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

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

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

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

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)