I'm working on a Xamarin.Forms app based on Shell, and I'm using font icons as icons for the TabBar:
<TabBar>
<ShellContent Title="Home" Route="HomePage" ContentTemplate="{DataTemplate local:HomePage}">
<ShellContent.Icon>
<FontImageSource Glyph="{StaticResource FasIconHome}" FontFamily="FontAwesomeSolid" />
</ShellContent.Icon>
</ShellContent>
</TabBar>
I would like to specify a color only for the active tab, but only for the icon, not for the text, as we can see on Airbnb:

I didn't found any option in the Shell settings:
<Setter Property="Shell.BackgroundColor" Value="White" />
<Setter Property="Shell.ForegroundColor" Value="Black" />
<Setter Property="Shell.TitleColor" Value="Black" />
<Setter Property="Shell.DisabledColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.TabBarBackgroundColor" Value="White" />
<Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource Gray-300}"/>
<Setter Property="Shell.TabBarUnselectedColor" Value="#95000000" />
<Setter Property="Shell.TabBarTitleColor" Value="Black" />
Is it possible?
In your case , you used FontImageSource to set the icon of tab item . However , if you want to set the color of a specific item icon , you need to download the icon with different color in advance and put the icon in both of native platform (Asset in iOS and Drawable in Android) . And set it by using Custom Renderer
in iOS
in Android