Instance Property


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


var boundingBox: CGRect { get }



The graphics path to evaluate.

Return Value

A rectangle that represents the bounding box of the specified path. If the path is empty, this function returns null.


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

See Also

Examining a Graphics Path

var boundingBoxOfPath: CGRect

Returns the bounding box of a graphics path.

var currentPoint: CGPoint

Returns the current point in a graphics path.

func contains(CGPoint, using: CGPathFillRule, transform: CGAffineTransform) -> Bool

Returns whether the specified point is interior to the path.

var isEmpty: Bool

Indicates whether or not a graphics path is empty.

func isRect(UnsafeMutablePointer<CGRect>?) -> Bool

Indicates whether or not a graphics path represents a rectangle.