Constants indicating the current state of the animation.


enum UIViewAnimatingState : Int



case inactive

The animations have not yet started executing. This is the initial state of the animator object.

case active

The animator object is active and animations are either running or paused. An animator moves to this state after the first call to startAnimation() or pauseAnimation(). It stays in the active state until the animations finish naturally or until you call the stopAnimation(_:) method.

case stopped

The animation is stopped. Putting an animation into this state ends the animation and leaves any animatable properties at their current values, instead of updating them to their intended final values. An animation cannot be started while in this state.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software