<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/animationBehavior-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(py)animationBehavior"
  },
  "title" : "animationBehavior"
}
-->

# animationBehavior

The window’s automatic animation behavior.

```
var animationBehavior: NSWindow.AnimationBehavior { get set }
```

## Discussion

This property controls the automatic window animation behavior used when the [`orderFront(_:)`](/documentation/AppKit/NSWindow/orderFront(_:)) or [`orderOut(_:)`](/documentation/AppKit/NSWindow/orderOut(_:)) methods are called. See [`NSWindow.AnimationBehavior`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum) for the possible values of this property.

By default, a window’s animation behavior is set to [`NSWindow.AnimationBehavior.default`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/default), which causes AppKit to determine the style of animation to use automatically based on its inference of a window’s “type” from various window properties. A window’s animation behavior can be set to [`NSWindow.AnimationBehavior.none`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum/none) to disable AppKit’s automatic animations for the window, which may be useful if that animation interferes with an animation that your application implements.

The animation behavior can also be set to one of the other non-default [`NSWindow.AnimationBehavior`](/documentation/AppKit/NSWindow/AnimationBehavior-swift.enum) values to override AppKit’s automatic inference of appropriate animation behavior based on the window’s apparent type, although this is not recommended.

---

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)