---
title: CGRectNull
framework: coregraphics
role: symbol
role_heading: Global Variable
path: coregraphics/cgrectnull
---

# CGRectNull

The null rectangle, representing an invalid value.

## Declaration

```swift
let CGRectNull: CGRect
```

## Discussion

Discussion This is the rectangle returned when, for example, you intersect two disjoint rectangles. Note that the null rectangle is not the same as the CGRectZero 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

### Constants

- [CGRectInfinite](coregraphics/cgrectinfinite.md)
- [Geometric Zeros](coregraphics/geometric-zeros.md)
- [CGRectEdge](corefoundation/cgrectedge.md)
- [CGFloat Informational Macros](coregraphics/cgfloat-informational-macros.md)
