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

# runLoopModesForAnimating

An array of strings representing the run loop modes in which the animation can run.

```
var runLoopModesForAnimating: [RunLoop.Mode]? { get }
```

## Discussion

The default value of this property is `nil`, which indicates that the animation can be run in the default, modal, or event-tracking modes. The value of this property is ignored if the animation blocking mode is something other than [`NSAnimation.BlockingMode.nonblocking`](/documentation/AppKit/NSAnimation/BlockingMode/nonblocking).

For information about run loop modes and for constants, see <doc://com.apple.documentation/documentation/Foundation/RunLoop>.

---

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)