Why doesn't SetStatusBarTextColorMode() work?

I've set up my NavigationPage BarTextColor to white, and then I'm calling the SetStatusBarTextColorMode() method to match the navigation bar text luminosity. Yet the status bar text color still shows black (I expect it to be white).

Here's how I'm setting up the navigation page (NEONPage is my ContentPage):

        var nav = new Xamarin.Forms.NavigationPage(new NEONPage())
        {
            BarBackgroundColor = Color.FromRgb(64, 64, 64),
            BarTextColor = Color.White
        };

        nav.On<iOS>().SetIsNavigationBarTranslucent(true);
        nav.On<iOS>().SetStatusBarTextColorMode(StatusBarTextColorMode.MatchNavigationBarTextLuminosity);

        MainPage = nav;

Any ideas on what I'm missing? Thanks.

Answers

Sign In or Register to comment.