The iOS setting UISwitch.Appearance.OnTintColor no longer works after the Xamarin.Forms 3.1.0.583944 update.
On iOS switches show the selected colour when in the On state.
Switches are shown with the default iOS green colour in the On state.
Same bug here.
UITabBarItem.Appearance.SetTitleTextAttributes seems bugged too.
@philmoz If you could attach a reproduction, we'd appreciate it.
Reproduction zip file (in case you missed it ----> XF_3111.zip
Before 3.1.0.583944 update:
After 3.1.0.583944 update:
yes the UISwitch is now broke in latest xamarin forms update the switch color is changed to default color in iOS (green) how can we customize now to other color
@vyasaraj999 you can use the “oncolor ” property in xamarin forms switch
Is this ever going to get fixed or do I now have to manually add another property to every switch?
Instead of having one theme setting applied to all switches I now have to add a property to them all (and hope I don't miss one).
What happened to not breaking existing functionality?
@philmoz you can easily create a style in your app.xaml to add color on all your switch:
<Style TargetType="Switch">
<Setter Property="OnColor" Value="yourcolor"/>
</Style>
@markjackmilian thanks.... it is working fine now.
Should be fixed on 3.3.0 as pr #3819 was merged alread
Most helpful comment
@philmoz you can easily create a style in your app.xaml to add color on all your switch:
<Style TargetType="Switch"> <Setter Property="OnColor" Value="yourcolor"/> </Style>