title: Fake Status Bar Color when Navigation Bar is hidden
body: <p>I'm running into an issue with status bars &amp; navigation bars. By default the navigation bar of <code>UINavigationController</code> extends behind the status bar and colors it (left screenshot).</p>
  
  <p>When the search bar is used, I hide the navigation bar. This results in an uncolored Status Bar. Apple's Mail app does not have this issue.</p>
  
  <p>Is there any other solution than creating a separate UIView with a background color and placing it behind the status bar?</p>
  
  <p><img src="https://i.stack.imgur.com/hhmFF.png" alt="Image that shows hidden and not-hidden navigation bar, and how this affects the status bar color"></p>
  
  <p>Here's what I'd like to accomplish:</p>
  
  <p><img src="https://i.stack.imgur.com/yLMmn.png" alt="enter image description here"></p>