I am unable to change the status bar text color of my Xamarin Forms iOS app to white. I have change in my info.plist as follow:
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
Yet the color still remain black.. Is there another way to change the status bar text color?
In Xamarin.Forms, there are three things you need to do to achieve white text in the iOS Status Bar. I've also posted a sample Xamarin.Forms app below that uses white text in the iOS Status Bar.
In Info.plist
, add the Boolean Property View controller-based status bar appearance
and set its value to No
In the Application
class (typically App.cs
), the MainPage
must be a NavigationPage
, and the BarTextColor
must be set to Color.White
Sometimes the compiler doesn't update the Status Bar Color until you Clean and Rebuild the app, so after making the changes in steps 1 & 2, clean the app and rebuild it.