If you cannot change a view controller's code
suggest changeIf a library’s view controller shows the wrong status-bar content, you still cannot set navigationBar on a plain UIViewController. That property belongs to UINavigationController. barStyle changes the navigation bar, and a black bar style also asks for light status-bar text. It is not preferredStatusBarStyle. .blackTranslucent is deprecated.
let awesomeViewController = AwesomeViewController()
awesomeViewController.navigationController?.navigationBar.barStyle = .blackTranslucent // or another style
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents