---
title: "contains(_:)"
framework: corefoundation
role: symbol
role_heading: Instance Method
path: "corefoundation/cgrect/contains(_:)-8fdse"
---

# contains(_:)

## Declaration

```swift
func contains(_ rect2: CGRect) -> Bool
```
