---
title: behavioralStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationbar/behavioralstyle
---

# behavioralStyle

The behavioral style of the navigation bar.

## Declaration

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

## Mentioned in

Building a desktop-class iPad app

## Discussion

Discussion Use this property to determine the actual behavior style when the preferredBehavioralStyle is UIBehavioralStyle.automatic. When the value of this property is UIBehavioralStyle.mac, NSToolbar hosts the navigation bar’s content when you build your app with Mac Catalyst.

## See Also

### Building with Mac Catalyst

- [preferredBehavioralStyle](uikit/uinavigationbar/preferredbehavioralstyle.md)
- [currentNSToolbarSection](uikit/uinavigationbar/currentnstoolbarsection.md)
- [UINavigationBar.NSToolbarSection](uikit/uinavigationbar/nstoolbarsection.md)
