---
title: barStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationbar/barstyle
---

# barStyle

The navigation bar style that specifies its appearance.

## Declaration

```swift
var barStyle: UIBarStyle { get set }
```

## Discussion

Discussion See UIBarStyle for possible values. The default value is UIBarStyle.default. It is permissible to set the value of this property when the navigation bar is being managed by a navigation controller object.

## See Also

### Setting the bar’s style

- [UIBarStyle](uikit/uibarstyle.md)
