Since Xcode 11.4 overriding the preferredStatusBarStyle
property does not seem to work anymore in some cases.
We have an extension of UINavigationController
where we override it for basically every ViewController but this property is no longer called since Xcode 11.4. Therefore the status bar is black for mostly all ViewControllers.
extension UINavigationController {
override open var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
It also stopped working for some ViewControllers where we override preferredStatusBarStyle
again. The property gets accessed, however, the status bar does not change its color.
View controller-based status bar appearance
is set to YES
in info.plist.
Issue occurs on simulator and real devices.
Does anyone have this problem too?