# hidesBottomBarWhenPushed opposite method

**URL:** <https://forums.kodeco.com/t/hidesbottombarwhenpushed-opposite-method/179428>\
**Category:** Swift\
**Created:** [October 4, 2022, 9:29am UTC](https://forums.kodeco.com/t/hidesbottombarwhenpushed-opposite-method/179428 "2022-10-04T09:29:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rufy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rufy/32/111867_2.png) [@rufy](https://forums.kodeco.com/u/rufy)\
**Post date:** [October 4, 2022, 9:29am UTC](https://forums.kodeco.com/t/hidesbottombarwhenpushed-opposite-method/179428/1 "2022-10-04T09:29:26Z")

</div>

Hi everybody, I use this method hidesBottomBarWhenPushed to hide the tabbar when I push a new view controller. but when I back to root view controller I would like to show back again the tab bar.

how can I do It?

thanks

---

<div class="post-metadata">

**Author:** ![robertomachorro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/robertomachorro/32/111603_2.png) [@robertomachorro](https://forums.kodeco.com/u/robertomachorro)\
**Post date:** [October 4, 2022, 9:56pm UTC](https://forums.kodeco.com/t/hidesbottombarwhenpushed-opposite-method/179428/2 "2022-10-04T21:56:36Z")

</div>

You could just toggle it back on, as it is a property:

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

```

From the documentation:

> If the value of this property is `true`, the toolbar is hidden. If the value of this property is `false`, the bar is visible.

> **[hidesBottomBarWhenPushed | Apple Developer Documentation](https://developer.apple.com/documentation/uikit/uiviewcontroller/1621863-hidesbottombarwhenpushed)**
>
> A Boolean value indicating whether the toolbar at the bottom of the screen is hidden when the view controller is pushed on to a navigation controller.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [March 20, 2023, 1:30am UTC](https://forums.kodeco.com/t/hidesbottombarwhenpushed-opposite-method/179428/3 "2023-03-20T01:30:15Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
