<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapView/convert(_:toRectTo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMapView(im)convertRegion:toRectToView:"
  },
  "title" : "convert(_:toRectTo:)"
}
-->

# convert(_:toRectTo:)

Converts a map region to a rectangle in the specified view.

iOS, iPadOS, Mac Catalyst, tvOS, visionOS:

```
func convert(_ region: MKCoordinateRegion, toRectTo view: UIView?) -> CGRect
```

macOS:

```
func convert(_ region: MKCoordinateRegion, toRectTo view: NSView?) -> CGRect
```

## Parameters

`region`

The map region that you want to find the corresponding view rectangle for.

`view`

The view where you want to locate the specified map region. If this parameter is `nil`, the method specifies the returned rectangle in the window’s coordinate system. If `view` isn’t `nil`, the rectangle belongs to the same window as the map view.

## Return Value

The rectangle corresponding to the specified map region.

---

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)