<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapRectEqualToRect(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:@F@MKMapRectEqualToRect"
  },
  "title" : "MKMapRectEqualToRect(_:_:)"
}
-->

# MKMapRectEqualToRect(_:_:)

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

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

## Parameters

`rect1`

The first map rectangle.

`rect2`

The second map rectangle.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the rectangles are exactly the same, or <doc://com.apple.documentation/documentation/Swift/false> if the origin point or size values are different.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)