---
title: showsActivityIndicator
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/configuration-swift.struct/showsactivityindicator
---

# showsActivityIndicator

A Boolean value that determines whether the button displays an activity indicator instead of an image.

## Declaration

```swift
var showsActivityIndicator: Bool { get set }
```

## Discussion

Discussion The button respects the imagePlacement property when positioning the activity indicator.

## See Also

### Configuring the activity indicator

- [activityIndicatorColorTransformer](uikit/uibutton/configuration-swift.struct/activityindicatorcolortransformer.md)
