I'm trying to customise an Entry field for iOS platform with Visual=Material enabled.
I tried via CustomRenderer but since is iOS platform I don't know to how to reach, for example, to modify the material bottom border color without modifying the whole text color for the control.
[assembly: ExportRenderer(typeof(Entry), typeof(CustomMaterialEntryRenderer), new[] { typeof(VisualMarker.MaterialVisual) })]
public class CustomMaterialEntryRenderer : MaterialEntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control == null || e.NewElement == null) return;
Layer.BorderColor = Color.FromHex("#cedee7").ToCGColor();
}
}
To be clear enough, just in case, I want the bottom line for example in red and text in black.

Thanks in advance!
It seems an existing issue that the
CustomRendererwill never been called .We will focus on this issue .Workaround 1:
If you just want to set the underline color of
Entry. It is unnecessary to setVisual=Material.You just need to create a default Custom Renderer ofEntry.Don't forget to set the
WidthRequestandHeightRequestin xaml.Workaround 2
Fortunately,there are many plugin of Material Controls from nuget. And you can download and use it directly . For example MaterialFormControls
Download the package from Nuget Manager (make sure to check the include prerelease)
And set the property AccentColor to change the under line color