Material: Issue using light content statusBarStyle

Created on 21 Oct 2016  路  2Comments  路  Source: CosmicMind/Material

As in the ToolbarController project example I'm setting status bar style and color with the following:

private func prepareStatusBar() {
        statusBarStyle = .lightContent
        statusBar.backgroundColor = Color.blue.darken3
}

The backgroundColor gets set correctly, but the status bar text remains black.
Is this a bug or is it possibly being overwritten somewhere else? Do you know whether storyboard properties could be causing this?

Cheers

help wanted

Most helpful comment

Hey! I think you are missing a value in your info.plist file. You need to set the View controller-based status bar appearance to NO.

:)

All 2 comments

Hey! I think you are missing a value in your info.plist file. You need to set the View controller-based status bar appearance to NO.

:)

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kylebrowning picture kylebrowning  路  15Comments

timoschwarzer picture timoschwarzer  路  19Comments

OrkhanAlikhanov picture OrkhanAlikhanov  路  17Comments

PuneetKohli picture PuneetKohli  路  14Comments

karstengresch picture karstengresch  路  15Comments