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

# preferredBehavioralStyle

The preferred behavioral style.

```
var preferredBehavioralStyle: UIBehavioralStyle { get set }
```

## Discussion

Use this property to specify the behavioral style for the slider. If the value of the property is [`UIBehavioralStyle.automatic`](/documentation/UIKit/UIBehavioralStyle/automatic), use the [`behavioralStyle`](/documentation/UIKit/UISlider/behavioralStyle) property to determine the actual style.

The default value for [`preferredBehavioralStyle`](/documentation/UIKit/UISlider/preferredBehavioralStyle) is [`UIBehavioralStyle.automatic`](/documentation/UIKit/UIBehavioralStyle/automatic). To learn more about behavior styles, see [`UIBehavioralStyle`](/documentation/UIKit/UIBehavioralStyle).

---

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)