UINavigationBar hides under statusBar
<p>In some <code>UIViewController</code>, <code>UINavigationBar</code> hides under status bar. Here is the screenshot:</p>

<p><a href="https://i.stack.imgur.com/Rnqr7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Rnqr7.png" alt="&lt;code&gt;UINavigationBar&lt;/code&gt; under StatusBar"></a></p>

<p>But when I change <code>View controller-based status bar appearance</code> to <code>YES</code> then <code>UINavigationBar</code> looks perfect. Here is the screenshot:</p>

<p><a href="https://i.stack.imgur.com/oDqLV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oDqLV.png" alt="black text in &lt;code&gt;UIStatusBar&lt;/code&gt;"></a></p>

<p>But in this case, <code>textColor</code> of <code>status bar</code> goes change from white to black. I want white text color of status bar and also unhide <code>UINavigationBar</code> from status bar.  Is there any way to solve out it (White color of status bar and unhide <code>UINavigationBar</code>). </p>

<p>Thanks in advance!</p>