---
title: "intersects(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkoverlay/intersects(_:)"
---

# intersects(_:)

Returns a Boolean value that indicates whether the specified rectangle intersects the overlay’s shape.

## Declaration

```swift
optional func intersects(_ mapRect: MKMapRect) -> Bool
```

## Parameters

- `mapRect`: The rectangle to intersect with the overlay’s area.

## Return Value

Return Value true if any part of the map rectangle intersects the receiver’s shape, or false if it doesn’t.

## Discussion

Discussion You can implement this method to provide more specific bounds-checking for an overlay. If you don’t implement it, the method uses the bounding rectangle to detect intersections.
