---
title: runLoopModesForAnimating
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsanimation/runloopmodesforanimating
---

# runLoopModesForAnimating

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

## Declaration

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

## Discussion

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. For information about run loop modes and for constants, see RunLoop.

## See Also

### Configuring an Animation

- [animationBlockingMode](appkit/nsanimation/animationblockingmode.md)
- [animationCurve](appkit/nsanimation/animationcurve.md)
- [duration](appkit/nsanimation/duration.md)
- [frameRate](appkit/nsanimation/framerate.md)
