I'm working on Embedded Images Tint color in xamarin forms using with this nuget package, working fine in android but not in iOS. As per my search I used rendering mode to AlwaysTemplate but in my scenario I'm unable to use rendering mode. what I'm doing is using the image references from solution file not from iOS assets.
Below is my code snippet.
<controls:TintedImage
x:Name="ColorChange"
Aspect="AspectFit"
HeightRequest="17"
Source="{local:ImageResource AppName.Images.dot.png}"
TintColor="{StaticResource PlaceholderColor}"
VerticalOptions="Center"
WidthRequest="17" />
I want to change TintColor if an image without rendering image for iOS in xamarin forms.
You can write a custom renderer of
Image
to change the tint color andUIImageRenderingMode
.In Xamarin.forms:
In iOS project: