I want to hide status bar in a first controller, but I also want it to appear in a second controller in a lightContent.
I used:
UIApplication.shared.statusBarStyle = .lightContent
for light content and
override var prefersStatusBarHidden: Bool {
return true
}
to hide status bar.
My problem is that set View controller-based status bar appearance to Yes/No in .plist file will disable one or another.