---
title: hidesBarsOnSwipe
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationcontroller/hidesbarsonswipe
---

# hidesBarsOnSwipe

A Boolean value indicating whether the navigation bar hides its bars in response to a swipe gesture.

## Declaration

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

## Discussion

Discussion When this property is set to true, an upward swipe hides the navigation bar and toolbar. A downward swipe shows both bars again. If the toolbar does not have any items, it remains visible even after a swipe. The default value of this property is false.

## See Also

### Hiding the navigation bar

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