Contents

boundingBoxOfPath

Returns the bounding box of a graphics path.

Declaration

var boundingBoxOfPath: CGRect { get }

Discussion

The path bounding box is the smallest rectangle completely enclosing all points in the path but not including control points for Bézier and quadratic curves. If the path is empty, this value is CGRectNull.

See Also

Examining a Graphics Path