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

# stopAnimating()

Stops the animation of the progress indicator.

```
func stopAnimating()
```

## Discussion

Call this method to stop the animation of the progress indicator started with a call to [`startAnimating()`](/documentation/UIKit/UIActivityIndicatorView/startAnimating()). When animating is stopped, the indicator is hidden, unless [`hidesWhenStopped`](/documentation/UIKit/UIActivityIndicatorView/hidesWhenStopped) is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)