Toolbar icon in iOS app is having a tint for xamarin forms

1.2k Views Asked by At

I have a xamarin forms app where i need to add a toolbar item in the navigation bar. I have a multicolored image as the tool bar icon. When i run in android devices the exact image is being shown as the toolbar icon. However in iOS it is showing as a blue image. Is there any way to get the correct multicolored icon for iOS as well?

enter image description here

2

There are 2 best solutions below

1
On

try this code App.cs

MainPage = new NavigationPage(new PointOfSaleRMSApp.LoginPage())
{
    BarBackgroundColor = Color.FromHex("#34C4F9"),
    BarTextColor = Color.White
};
0
On

When you create your pages using NavigationPage, Xamarin.Forms automatically creates a navigation bar on iOS. You can also modify quite a few things of the navigation bar, like this:

NavigationPage.SetBackButtonTitle(this, ""); // Empty text
NavigationPage.SetHasBackButton(this, false); // No back button
NavigationPage.SetTitleIcon (this, someIcon); // Set the icon