title: How do you set the status bar or safe area to remove white space on iPhone X?
body: <p>I have added the option to use safe area guidelines yet when I view the app it appears to respect the safe area but theres some white space that I cant get rid of. I dont know what is causing it nor do I know how to change the color from white. </p>
  
  <p>I've set the background color to what you see below. </p>
  
  <pre><code>view.backgroundColor = UIColor(red:0.227, green:0.251, blue:0.294, alpha:1)
  </code></pre>
  
  <p>I've also set the white status bar style</p>
  
  <pre><code>UIApplication.shared.statusBarStyle = UIStatusBarStyle.lightContent
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/lFLTO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lFLTO.png" alt="enter image description here"></a></p>
  
  <p>My main Storyboard</p>
  
  <p><a href="https://i.stack.imgur.com/G7o1l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G7o1l.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/oR4dN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oR4dN.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/0B3us.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0B3us.png" alt="enter image description here"></a></p>