Skip to content

Changing UIViewControllerBasedStatusBarAppearance breaks UIBarStyle #16

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

Closed
darrenkhouston opened this issue Nov 11, 2019 · 2 comments
Closed

Comments

@darrenkhouston
Copy link

When setting the info.plist UIViewControllerBasedStatusBarAppearance to true and the UIStatusBarStyle set to UIStatusBarStyleLightContent, I have no control over the statusbar text color, only the background. If I stop using this plugin and go back to the regular Manual Router, this problem is solved.

Seems to be related to this issue, but this is all I could find about it.

[iOS] Multiple frame breaks UIBarStyle #6771

@rigor789
Copy link
Member

rigor789 commented Feb 9, 2020

Could not reproduce it working with the Manual router either, as it seems barStyle has been deprecated?

I managed to get it working fine with

UIApplication.sharedApplication.setStatusBarStyleAnimated(0, true)
// or 
UIApplication.sharedApplication.setStatusBarStyleAnimated(1, true)

@darrenkhouston
Copy link
Author

Could not reproduce it working with the Manual router either, as it seems barStyle has been deprecated?

I managed to get it working fine with

UIApplication.sharedApplication.setStatusBarStyleAnimated(0, true)
// or 
UIApplication.sharedApplication.setStatusBarStyleAnimated(1, true)

Yep. This fixed the issue for me. Thanks @rigor789

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

No branches or pull requests

2 participants