I try to implement lightcontent
and darkcontent
for my mobile apps status bar
I put override function in my viewcontroller (Xib)
var statusBarStyle: UIStatusBarStyle = .lightContent
public override var preferredStatusBarStyle: UIStatusBarStyle {
print("this is running")
return statusBarStyle
}
But if i debug the process. it's not going inside override module. Is it a wrong implementatiion? How to make this things work?