I want white status bar in my app. For this I set View controller-based status bar appearance to NO and Status bar style to UISt
This is the swift version:
To hide the status bar or change it's appearance, you need to override the following properties in your view controller itself
override var prefersStatusBarHidden: Bool{
return true
}
the above hides the status bar and below if you want to set it to white:
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}