preferredStatusBarStyle during evaluatePolicy

Hi!


In one of my app I need to control the color of the status bar (need to be white).


For doing this I have added the UIViewControllerBasedStatusBarAppearance = true in Info.plist and overrided the preferredStatusBarStyle property of the view controllers / navigation controllers to lightContent.


Everything works properly except one thing. If I request a biometric authentication via LAContext.evaluatePolicy when the Touch ID dialog is displayed the status bar color change to black.


You can see the behaviour in the below image. Before the Touch ID message is displayed the status bar is white but when the message appear it become black.

https://www.dale1.ch/documents/status-bar-authentication-dialog.png


Someone know how to keep the status bar white even when the Touch ID request message is displayed?


Unfortunately I cannot set the UIViewControllerBasedStatusBarAppearance attribute to false.


Thank you


Alan

preferredStatusBarStyle during evaluatePolicy
 
 
Q