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

# pauseAnimation()

Pauses a running animation at its current position.

```
func pauseAnimation()
```

## Discussion

This method pauses running animations at their current values. Calling this method on an inactive animator moves its state to [`UIViewAnimatingState.active`](/documentation/UIKit/UIViewAnimatingState/active) and puts its animations in a paused state right away. To resume the animations, call the [`startAnimation()`](/documentation/UIKit/UIViewAnimating/startAnimation()) method. If the animation is already paused, this method should do nothing. It is a programmer error to call this method while the state of the animator is set to [`UIViewAnimatingState.stopped`](/documentation/UIKit/UIViewAnimatingState/stopped).

---

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)