<!--
{
  "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/hidesWhenStopped",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIActivityIndicatorView(py)hidesWhenStopped"
  },
  "title" : "hidesWhenStopped"
}
-->

# hidesWhenStopped

A Boolean value that controls whether the activity indicator is hidden when the animation is stopped.

```
var hidesWhenStopped: Bool { get set }
```

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/true> (the default), the receiver sets its [`isHidden`](/documentation/UIKit/UIView/isHidden) property (`UIView`) to <doc://com.apple.documentation/documentation/Swift/true> when receiver is not animating. If the [`hidesWhenStopped`](/documentation/UIKit/UIActivityIndicatorView/hidesWhenStopped) property is <doc://com.apple.documentation/documentation/Swift/false>, the receiver is not hidden when animation stops. You stop an animating progress indicator with the [`stopAnimating()`](/documentation/UIKit/UIActivityIndicatorView/stopAnimating()) method.

---

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)