title: iOS Swift 4 Status bar - disable Translucent
body: <p>I am trying to get the status bar of my iOS (webView) app not Translucent.</p>
  
  <p>I tried this inside func viewDidLoad():</p>
  
  <pre><code>self.navigationController?.navigationBar.isTranslucent = false
  </code></pre>
  
  <p>And this in the appDelegate:</p>
  
  <pre><code>    UINavigationBar.appearance().isTranslucent = false
      UINavigationBar.appearance().backgroundColor = .white
  </code></pre>
  
  <p>This is what I am getting when scrolling the page..
  <a href="https://i.stack.imgur.com/kZ4pS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kZ4pS.png" alt="enter image description here"></a></p>