title: Change status bar background color in some view controllers - Swift
body: <p>I am building a iOS app in Swift and I need to change the background color of the status bar in some view controllers. I have been able to change the text color however I am not able to find a way to change the background.</p>
  
  <p>I am allowing "View controller-based status bar appearance" to YES and using</p>
  
  <pre><code>UIApplication.sharedApplication().statusBarStyle = .LightContent
  </code></pre>
  
  <p>in the viewDidLoad method.</p>
  
  <p>Any suggestions?</p>