---
title: "MKMapRectEqualToRect(_:_:)"
framework: mapkit
role: symbol
role_heading: Function
path: "mapkit/mkmaprectequaltorect(_:_:)"
---

# MKMapRectEqualToRect(_:_:)

Returns a Boolean value that indicates whether two map rectangles are equal.

## Declaration

```swift
func MKMapRectEqualToRect(_ rect1: MKMapRect, _ rect2: MKMapRect) -> Bool
```

## Parameters

- `rect1`: The first map rectangle.
- `rect2`: The second map rectangle.

## Return Value

Return Value true if the rectangles are exactly the same, or false if the origin point or size values are different.

## See Also

### Comparing rectangles

- [isNull](mapkit/mkmaprect/isnull.md)
- [isEmpty](mapkit/mkmaprect/isempty.md)
- [spans180thMeridian](mapkit/mkmaprect/spans180thmeridian.md)
- [remainder](mapkit/mkmaprect/remainder.md)
