public static UIBezierPath AsUIBezierPath(this PathF target) { if (target == null) { return(null); } return(UIBezierPath.FromPath(target.AsCGPath())); }
public RectangleF GetPathBounds(PathF path) { var nativePath = path.NativePath as CGPath; if (nativePath == null) { nativePath = path.AsCGPath(); path.NativePath = nativePath; } var bounds = nativePath.PathBoundingBox; return(bounds.AsRectangleF()); }