Instance Property


Indicates whether or not a graphics path is empty.


var isEmpty: Bool { get }



The path to evaluate.

Return Value

A Boolean value that indicates whether the specified path is empty.


An empty path contains no elements.

See Also

Examining a Graphics Path

var boundingBox: CGRect

Returns the bounding box containing all points in 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.

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

Indicates whether or not a graphics path represents a rectangle.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software