Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 9 status bar style "lightContent" not working #8

Closed
1024kilobyte opened this issue Jan 15, 2017 · 1 comment
Closed

iOS 9 status bar style "lightContent" not working #8

1024kilobyte opened this issue Jan 15, 2017 · 1 comment

Comments

@1024kilobyte
Copy link

Now that the status bar is visible on iOS 9 I recognized that the status bar style set by the view controller is ignored. My code is pretty simple:

`
override var prefersStatusBarHidden: Bool {
return false
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return isDarkMode ? .lightContent : .default
}
`

The status bar style is switching on iOS 10 but not on iOS 9 (where it is always default).

@dani-gavrilov
Copy link
Owner

Take a look at release v1.0.9.

It seems that the only way to fix this is configure status bar of GDPerformanceVIew root view controller. So now you can use something like this - 'GDPerformanceMonitor.sharedInstance.configureStatusBarAppearance(prefersStatusBarHidden: false, preferredStatusBarStyle: UIStatusBarStyle.lightContent)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants