Hi,
Just checking to see if I'm missing something. In iOS 13.3.1 preferredStatusBarStyle fired and worked fine. In iOS 13.4 and 13.4.1 is doesn't fire at all. I thought this was supposed to be fixed in iOS 13.4.1
I have themes set up in my app and they still work fine in iOS 13.3.1
override var preferredStatusBarStyle: UIStatusBarStyle
{
// print("preferredStatusBarStyle fired")
return Theme.current.barStyle
}
Seems the view hierarchy may be affecting.
Till now, I cannot reproduce the same issue with my simple sample code, which shows the same behavior both in 13.3 and 13.4.
Have you tried customizing the navigation controller?
For example, what happens if you replace the Custom Class of the navigation controller to this class?
class MyNavigationController: UINavigationController {
override var preferredStatusBarStyle: UIStatusBarStyle {
print(type(of: self), #function)
let style = super.preferredStatusBarStyle
print(type(of: self), style.rawValue)
return style
}
}