<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButtonConfigurationIndicator/UIButtonConfigurationIndicatorAutomatic",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration Case",
  "symbol" : {
    "kind" : "Enumeration Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIButtonConfigurationIndicator@UIButtonConfigurationIndicatorAutomatic"
  },
  "title" : "UIButtonConfigurationIndicatorAutomatic"
}
-->

# UIButtonConfigurationIndicatorAutomatic

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

```
UIButtonConfigurationIndicatorAutomatic
```

## 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)