---
title: UIButton.Configuration.Indicator.automatic
framework: uikit
role: symbol
role_heading: Case
path: uikit/uibutton/configuration-swift.struct/indicator-swift.enum/automatic
---

# UIButton.Configuration.Indicator.automatic

A constant that automatically determines an indicator style according to the button’s properties.

## Declaration

```swift
case automatic
```

## Discussion

Discussion With this behavior, the system automatically shows an indicator if the button shows a menu and has single-selection behavior (when its isContextMenuInteractionEnabled, showsMenuAsPrimaryAction, and changesSelectionAsPrimaryAction properties are true).

## See Also

### Indicator styles

- [UIButton.Configuration.Indicator.none](uikit/uibutton/configuration-swift.struct/indicator-swift.enum/none.md)
- [UIButton.Configuration.Indicator.popup](uikit/uibutton/configuration-swift.struct/indicator-swift.enum/popup.md)
