I have tried with Linear Gradient for Xamarin.Android and Xamarin.iOS and in iOS the start color[ Color.Blue ] is mixing with end color[ Color.Yellow ].[ See below image(Ending Color is mixed with blue)]. But in Android start color is Exact Blue and end Color is Exact Yellow. I need android requirement in iOS too. Am i miss anything in the below code for gradient
var colors = new CGColor[]
{
UIColor.Blue.CGColor,
UIColor.Yellow.CGColor
};
var colorSpace = CGColorSpace.CreateDeviceRGB();
CGGradient gradient = new CGGradient(colorSpace, colors, null);
ctx.DrawLinearGradient(gradient, Start(bounds), End(bounds), CGGradientDrawingOptions.None);
iOS image:
Android image: