Type Property


The null rectangle, representing an invalid value.


static let null: CGRect


This is the rectangle returned when, for example, you intersect two disjoint rectangles. Note that the null rectangle is not the same as the zero rectangle. For example, the union of a rectangle with the null rectangle is the original rectangle (that is, the null rectangle contributes nothing).

See Also

Special Values

static let infinite: CGRect

A rectangle that has infinite extent.

static var zero: CGRect

The rectangle whose origin and size are both zero.


Creates a rectangle with origin (0,0) and size (0,0).

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