---
title: "contains(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmaprect/contains(_:)-79tjt"
---

# contains(_:)

Returns a Boolean value that indicates whether the specified map point lies within the rectangle.

## Declaration

```swift
func contains(_ point: MKMapPoint) -> Bool
```

## Parameters

- `point`: The point to check.

## Return Value

Return Value true if the rectangle isn’t null or empty and the point is inside the rectangle; otherwise, false.

## Discussion

Discussion For this method, a point is inside the rectangle if its coordinates lie inside the rectangle or on the minimum X or minimum Y edge.

## See Also

### Intersecting the rectangle

- [contains(_:)](mapkit/mkmaprect/contains(_:)-1z5oa.md)
- [intersects(_:)](mapkit/mkmaprect/intersects(_:).md)
