title: Swift 3 | Unable to hide status bar on a ViewController
body: <p>I want to show the status bar on portrait mode only, when I rotate the screen the status bar hides as intended but if I push / show a new View Controller the status bar appears again.</p>
  
  <p>I've tried the following without success:</p>
  
  <ul>
  <li>Setting <code>View controller-based status bar appearance</code> to <code>NO</code> in the <code>info.plist</code> file</li>
  <li>Using <code>setNeedsStatusBarAppearanceUpdate()</code> on <code>self</code> and on <code>NavigationController</code></li>
  <li>Setting <code>prefersStatusBarHidden: Bool</code> to <code>true</code></li>
  <li>Also tried <code>UIApplication.shared.setStatusBarHidden(true, with: UIStatusBarAnimation.none)</code></li>
  <li>Also extending NavigationController. <a href="https://stackoverflow.com/questions/33871020/cant-hide-status-bar-in-avplayerviewcontrollers-portrait-mode">seen here</a></li>
  </ul>
  
  <p>Any help will be appreciated. Thanks. </p>