<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewAnimating/state",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewAnimating(py)state"
  },
  "title" : "state"
}
-->

# state

The current state of the animation.

```
var state: UIViewAnimatingState { get }
```

## Discussion

This property reflects the current state of the animation. An animator object starts in the [`UIViewAnimatingState.inactive`](/documentation/UIKit/UIViewAnimatingState/inactive) state. Calling the [`startAnimation()`](/documentation/UIKit/UIViewAnimating/startAnimation()) or [`pauseAnimation()`](/documentation/UIKit/UIViewAnimating/pauseAnimation()) method changes the state to [`UIViewAnimatingState.active`](/documentation/UIKit/UIViewAnimatingState/active). Changing the [`fractionComplete`](/documentation/UIKit/UIViewAnimating/fractionComplete) property also moves the animator to the active state. The animator remains in the active state until its animations finish, at which point it moves back to the inactive state.

Calling the [`stopAnimation(_:)`](/documentation/UIKit/UIViewAnimating/stopAnimation(_:)) method changes the state of the animator to [`UIViewAnimatingState.stopped`](/documentation/UIKit/UIViewAnimatingState/stopped). When in this state, the animations are stopped and cannot be restarted until you call the [`finishAnimation(at:)`](/documentation/UIKit/UIViewAnimating/finishAnimation(at:)) method, which returns the animator to the inactive state.

---

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)