---
title: stopAnimating()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiactivityindicatorview/stopanimating()
---

# stopAnimating()

Stops the animation of the progress indicator.

## Declaration

```swift
func stopAnimating()
```

## Discussion

Discussion Call this method to stop the animation of the progress indicator started with a call to startAnimating(). When animating is stopped, the indicator is hidden, unless hidesWhenStopped is false.

## See Also

### Managing an activity indicator

- [startAnimating()](uikit/uiactivityindicatorview/startanimating().md)
- [isAnimating](uikit/uiactivityindicatorview/isanimating.md)
- [hidesWhenStopped](uikit/uiactivityindicatorview/hideswhenstopped.md)
