title: Change statusBar background color while using large title for navigation bar on iOS 11
body: <p>I'm trying to use the new navigationBar's large title feature on iOS 11.</p>
  
  <p>However, after I added the following line:</p>
  
  <pre><code>self.navigationController?.navigationBar.prefersLargeTitles = true
  </code></pre>
  
  <p>I found that the navigationBar background color changed to black.</p>
  
  <p><a href="https://i.stack.imgur.com/y7cEW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/y7cEW.png" alt="Navigation Bar 1"></a></p>
  
  <p>So I set background color again manually:</p>
  
  <pre><code>self.navigationController?.setBackgroundColor(UIColor(hexString: 0xFF7E79))
  </code></pre>
  
  <p>However, I found that the statusBar background color didn't change:</p>
  
  <p><a href="https://i.stack.imgur.com/xUST0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xUST0.png" alt="Navigation Bar 2"></a></p>
  
  <p>After I set up the background color of statusBar through this code:</p>
  
  <pre><code>guard let statusBar = UIApplication.shared.value(forKeyPath: "statusBarWindow.statusBar") as? UIView else { return 
  statusBar.backgroundColor = UIColor(hexString: 0xFF7E79)
  </code></pre>
  
  <p>It gives me an ugly 1px black line like this between the statusBar and the navigationBar:</p>
  
  <p><a href="https://i.stack.imgur.com/nW9Qw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nW9Qw.png" alt="Navigation Bar 3"></a></p>
  
  <p>So what is the correct way to set the background color of navigationBar?</p>