Contents

boundingBoxOfPath

Returns the smallest rectangle that contains the current path.

Declaration

var boundingBoxOfPath: CGRect { get }

Discussion

The bounding box is the smallest rectangle completely enclosing all points in a path, including control points for Bézier cubic and quadratic curves.

See Also

Examining the Current Graphics Path