---
title: "CGRectIsNull(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgrectisnull(_:)"
---

# CGRectIsNull(_:)

Returns whether the rectangle is equal to the null rectangle.

## Declaration

```swift
func CGRectIsNull(_ rect: CGRect) -> Bool
```

## Parameters

- `rect`: The rectangle to examine.

## Return Value

Return Value true if the specified rectangle is null; otherwise, false.

## Discussion

Discussion A null rectangle is the equivalent of an empty set. For example, the result of intersecting two disjoint rectangles is a null rectangle. A null rectangle cannot be drawn and interacts with other rectangles in special ways.

## See Also

### Checking Rectangle Characteristics

- [CGRectIsEmpty(_:)](coregraphics/cgrectisempty(_:).md)
- [CGRectIsInfinite(_:)](coregraphics/cgrectisinfinite(_:).md)
