Instance Property


The bounding rectangle of the path.


var bounds: CGRect { get }


The value in this property represents the smallest rectangle that completely encloses all points in the path, including any control points for Bézier and quadratic curves.

See Also

Hit Detection

func contains(CGPoint) -> Bool

Returns a Boolean value indicating whether the area enclosed by the receiver contains the specified point.

var isEmpty: Bool

A Boolean value indicating whether the path has any valid elements.