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

# MKMapSizeEqualToSize(_:_:)

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

```
func MKMapSizeEqualToSize(_ size1: MKMapSize, _ size2: MKMapSize) -> Bool
```

## Parameters

`size1`

The first map size.

`size2`

The second map size.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the `width` and `height` values in both sizes are exactly the same, or <doc://com.apple.documentation/documentation/Swift/false> if one or both values are different.

---

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)