---
title: preferredBehavioralStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uislider/preferredbehavioralstyle
---

# preferredBehavioralStyle

The preferred behavioral style.

## Declaration

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

## Mentioned in

Choosing a user interface idiom for your Mac app

## Discussion

Discussion Use this property to specify the behavioral style for the slider. If the value of the property is UIBehavioralStyle.automatic, use the behavioralStyle property to determine the actual style. The default value for preferredBehavioralStyle is UIBehavioralStyle.automatic. To learn more about behavior styles, see UIBehavioralStyle.

## See Also

### Modifying the slider’s behavior

- [isContinuous](uikit/uislider/iscontinuous.md)
- [behavioralStyle](uikit/uislider/behavioralstyle.md)
- [UIBehavioralStyle](uikit/uibehavioralstyle.md)
