Contents

boundingBox

Returns the bounding box containing all points in a graphics path.

Declaration

var boundingBox: CGRect { get }

Discussion

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

See Also

Examining a Graphics Path