<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/behavioralStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIButton(py)behavioralStyle"
  },
  "title" : "behavioralStyle"
}
-->

# behavioralStyle

The style that determines how the button behaves.

```
var behavioralStyle: UIBehavioralStyle { get }
```

## Discussion

Use this property to determine the actual behavior style when the [`preferredBehavioralStyle`](/documentation/UIKit/UIButton/preferredBehavioralStyle) is [`UIBehavioralStyle.automatic`](/documentation/UIKit/UIBehavioralStyle/automatic).

---

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)