In dark mode style, the status bar disappear cause of dark color.
I added the:
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
but the problem is, when I add the method in "viewDidLoad"
I get the error:
override can only be specified in class member
any idea how to resolve this?