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).