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

# preferredBehavioralStyle

The preferred behavioral style.

## Declaration

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

## Discussion

Discussion Use this property to specify the behavioral style for the button. 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 behavioral styles, see UIBehavioralStyle.

## See Also

### Specifying the behavioral style

- [behavioralStyle](uikit/uibutton/behavioralstyle.md)
- [UIBehavioralStyle](uikit/uibehavioralstyle.md)
