title: Change Status Bar Background Color in Swift 3
body: <p>In XCode 7.3.x ill changed the background Color for my StatusBar with:</p>
  
  <pre><code>func setStatusBarBackgroundColor(color: UIColor) {
  guard  let statusBar = UIApplication.sharedApplication().valueForKey("statusBarWindow")?.valueForKey("statusBar") as? UIView else {
      return
  }
  statusBar.backgroundColor = color
  }
  </code></pre>
  
  <p>But it seems that this is not working anymore with Swift 3.0.</p>
  
  <p>Ill tried with:</p>
  
  <pre><code>func setStatusBarBackgroundColor(color: UIColor) {
  guard  let statusBar = (UIApplication.shared.value(forKey: "statusBarWindow") as AnyObject).value(forKey: "statusBar") as? UIView else {
      return
  }
  statusBar.backgroundColor = color
  }
  </code></pre>
  
  <p>But it gives me:</p>
  
  <pre><code>this class is not key value coding-compliant for the key statusBar.
  </code></pre>
  
  <p>Any Ideas how to change it with XCode8/Swift 3.0?</p>