---
title: "CGRectIsInfinite(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgrectisinfinite(_:)"
---

# CGRectIsInfinite(_:)

Returns whether a rectangle is infinite.

## Declaration

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

## Parameters

- `rect`: The rectangle to examine.

## Return Value

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

## Discussion

Discussion An infinite rectangle is one that has no defined bounds. Infinite rectangles can be created as output from a tiling filter. For example, the Core Image framework perspective tile filter creates an image whose extent is described by an infinite rectangle.

## See Also

### Checking Rectangle Characteristics

- [CGRectIsEmpty(_:)](coregraphics/cgrectisempty(_:).md)
- [CGRectIsNull(_:)](coregraphics/cgrectisnull(_:).md)
