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

# preferredBehavioralStyle

The preferred behavioral style of the navigation bar.

## Declaration

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

## Mentioned in

Building a desktop-class iPad app

## Discussion

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

## See Also

### Building with Mac Catalyst

- [behavioralStyle](uikit/uinavigationbar/behavioralstyle.md)
- [currentNSToolbarSection](uikit/uinavigationbar/currentnstoolbarsection.md)
- [UINavigationBar.NSToolbarSection](uikit/uinavigationbar/nstoolbarsection.md)
