In some UIViewController, UINavigationBar hides under status bar. Here is the screenshot:

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

But in this case, textColor of status bar goes change from white to black. I want white text color of status bar and also unhide UINavigationBar from status bar. Is there any way to solve out it (White color of status bar and unhide UINavigationBar).
Thanks in advance!
You can always manually set the origin of the navigation bar in viewWillAppear(animated: Bool)
self.navigationController?.navigationBar.frame.origin = CGPoint(0, 20)
Add these keys to your project Info.plist and you should be ok.
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With