Contents

isEmpty

A Boolean value that indicates whether the path has any valid elements.

Declaration

var isEmpty: Bool { get }

Discussion

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

Performing hit-testing