Instance Property


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


var isEmpty: Bool { get }


Valid path elements include commands to move to a specified point, draw a line or curve segment, or close the path. Thus, a path is not considered empty even if all you do is call the move(to:) method.

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 bounds: CGRect

The bounding rectangle of the path.