---
title: hidesBarsWhenVerticallyCompact
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationcontroller/hidesbarswhenverticallycompact
---

# hidesBarsWhenVerticallyCompact

A Boolean value indicating whether the navigation controller hides its bars in a vertically compact environment.

## Declaration

```swift
var hidesBarsWhenVerticallyCompact: Bool { get set }
```

## Discussion

Discussion When the value of this property is true, the navigation controller hides its navigation bar and toolbar when it transitions to a vertically compact environment. Upon returning to a vertically regular environment, the navigation controller automatically shows both bars again. In addition, unhandled taps in the content area cause the navigation controller to show both bars again. The default value of this property is false.

## See Also

### Hiding the navigation bar

- [hidesBarsOnTap](uikit/uinavigationcontroller/hidesbarsontap.md)
- [hidesBarsOnSwipe](uikit/uinavigationcontroller/hidesbarsonswipe.md)
- [hidesBarsWhenKeyboardAppears](uikit/uinavigationcontroller/hidesbarswhenkeyboardappears.md)
- [isNavigationBarHidden](uikit/uinavigationcontroller/isnavigationbarhidden.md)
- [barHideOnTapGestureRecognizer](uikit/uinavigationcontroller/barhideontapgesturerecognizer.md)
- [barHideOnSwipeGestureRecognizer](uikit/uinavigationcontroller/barhideonswipegesturerecognizer.md)
