Contents

CGRectIsEmpty(_:)

Returns whether a rectangle has zero width or height, or is a null rectangle.

Declaration

func CGRectIsEmpty(_ rect: CGRect) -> Bool

Parameters

  • rect:

    The rectangle to examine.

Return Value

true if the specified rectangle is empty; otherwise, false.

Discussion

An empty rectangle is either a null rectangle or a valid rectangle with zero height or width.

See Also

Checking Rectangle Characteristics