title: How can I hide the tab bar for a single view controller in a navigation controller stack
body: <p>I have a <code>UITabBarController</code>. One of the tabs contains a <code>UINavigationController</code>. </p>
  
  <p>I'd like to push a view controller onto the navigation stack and hide the tab bar on that view controller. I can do this easily with:</p>
  
  <pre><code>toVC.tabBarController?.hidesBottomBarWhenPushed = true
  self.navigationController?.pushViewController(toVC, animated: true)
  </code></pre>
  
  <p>or doing it in the storyboard:</p>
  
  <p><a href="https://i.stack.imgur.com/Qw2LW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qw2LW.png" alt="hidesBottomBarWhenPushed"></a></p>
  
  <p>The problem is, this hides the tab bar for any subsequent view controllers I push onto the stack. I'd like to simply hide the tab bar for this one view controller and show it for all other view controllers before and after it.</p>