title: Why Is My Status Bar Not Changing Preferred Style?
body: <p>I have <code>View controller-based status bar appearance</code> set to <code>YES</code> in my <code>Info.plist</code> file.</p>
  
  <p>The view controller, not in a navigation stack, is presented via a modal segue. In it, I have the following property override for Swift 3/iOS 10:</p>
  
  <pre class="lang-swift prettyprint-override"><code>override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent }
  </code></pre>
  
  <p>Still, the status bar retains its default (dark) styling. However, when I print <code>preferredStatusBarStyle</code> in <code>viewDidLoad</code>, I get a <code>rawValue</code> of <code>1</code>. Checking out the <a href="https://developer.apple.com/reference/uikit/uistatusbarstyle/1623094-lightcontent" rel="nofollow noreferrer">documentation</a>, <code>1</code> refers to <code>.lightContent</code>.</p>
  
  <p>I am trying to change the status bar's style to <code>.lightContent</code> because the view contains a <code>UIVisualEffectView</code> with a <code>UIBlurEffectStyle</code> value of <code>dark</code>.</p>
  
  <p>Am I doing something incorrectly?</p>