I have UIProgressView and I want to set its corner radius and transform but the corner radius not working as it should be.
My code in Xamarin.ios:
UIProgressView progressView = new UIProgressView(newFrame)
{
//Set background track color = gray
TrackTintColor = CustomColors.CustomColors.GetColor(CustomColors.CustomColors.ColorGray),
//Set progress track color = blue
ProgressTintColor = CustomColors.CustomColors.GetColor(CustomColors.CustomColors.ColorBlue)
};
//Set Y scale
progressView.Transform = CGAffineTransform.Scale(progressView.Transform, 1, 20f);
progressView.Layer.CornerRadius = 15f;
progressView.Layer.MasksToBounds = true;
progressView.ClipsToBounds = true;
progressView :