Type Property

zero

The rectangle whose origin and size are both zero.

Declaration

static var zero: CGRect { get }

Discussion

The zero rectangle is equivalent to one created by calling CGRect(x: 0, y: 0, width: 0, height: 0).

See Also

Special Values

static let infinite: CGRect

A rectangle that has infinite extent.

static let null: CGRect

The null rectangle, representing an invalid value.

init()

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