CAShapeLayer CreateRingLayer(CGPoint center, float radius, float lineWidth, UIColor color)
{
var smoothedPath = CreateCirclePath (center, radius, 72);
var slice = new CAShapeLayer ();
slice.Frame = new CGRect (center.X - radius, center.Y - radius, radius * 2, radius * 2);
slice.FillColor = UIColor.Clear.CGColor;
slice.StrokeColor = color.CGColor;
slice.LineWidth = lineWidth;
slice.LineCap = CAShapeLayer.JoinBevel;
slice.LineJoin = CAShapeLayer.JoinBevel;
slice.Path = smoothedPath.CGPath;
return slice;
}