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

statusBar.backgroundColor in ToolbarController is white #857

Closed
svachmic opened this issue Sep 7, 2017 · 2 comments
Closed

statusBar.backgroundColor in ToolbarController is white #857

svachmic opened this issue Sep 7, 2017 · 2 comments
Assignees
Labels

Comments

@svachmic
Copy link

svachmic commented Sep 7, 2017

I'm using the version 2.9.4 and by doing this setup:

func presentEmbedded(viewController: UIViewController, barTintColor: UIColor) {
        let toolbarController = ToolbarController(rootViewController: viewController)
        toolbarController.statusBarStyle = .lightContent
        toolbarController.statusBar.backgroundColor = barTintColor.darker()
        toolbarController.toolbar.backgroundColor = barTintColor
        self.parent?.present(toolbarController, animated: true, completion: nil)
}

I get this result:

screen shot 2017-09-07 at 09 04 20

The function darker() is not the issue (tried it without it), it used to work normally around version ~ 2.5.

Am I meant to not use ToolbarController anymore? Or is it possibly a bug?

Cheers

@daniel-jonathan daniel-jonathan self-assigned this Sep 8, 2017
@daniel-jonathan
Copy link
Member

This was a great catch, and a fix has been made and will be released within 30 minutes. Thank you :)

@svachmic
Copy link
Author

svachmic commented Sep 8, 2017

Works like a charm, thanks a lot!

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

No branches or pull requests

2 participants