<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "tvOS: 16.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/Configuration-swift.struct/Indicator-swift.enum/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So8UIButtonC5UIKitE13ConfigurationV9IndicatorO9automaticyA2GmF"
  },
  "title" : "UIButton.Configuration.Indicator.automatic"
}
-->

# UIButton.Configuration.Indicator.automatic

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

```
case automatic
```

## Discussion

With this behavior, the system automatically shows an indicator if the button shows a menu and has single-selection behavior (when its [`isContextMenuInteractionEnabled`](/documentation/UIKit/UIControl/isContextMenuInteractionEnabled), [`showsMenuAsPrimaryAction`](/documentation/UIKit/UIControl/showsMenuAsPrimaryAction), and [`changesSelectionAsPrimaryAction`](/documentation/UIKit/UIButton/changesSelectionAsPrimaryAction) properties are <doc://com.apple.documentation/documentation/Swift/true>).

---

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)