<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MapProxy",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A5ProxyV"
  },
  "title" : "MapProxy"
}
-->

# MapProxy

A proxy for accessing sizing information about a given map view.

```
struct MapProxy
```

## Topics

### Creating a camera proxy

[`camera(framing:)`](/documentation/MapKit/MapProxy/camera(framing:)-1asl2)

Creates a camera in the context of the map that frames the given coordinate region.

[`camera(framing:)`](/documentation/MapKit/MapProxy/camera(framing:)-uxov)

Creates a camera in the context of the map that frames the given map rectangle.

[`camera(framing:allowPitch:)`](/documentation/MapKit/MapProxy/camera(framing:allowPitch:))

Creates a camera in the context of the map that frames the given map item.

### Converting between coordinate spaces

[`convert(_:to:)`](/documentation/MapKit/MapProxy/convert(_:to:))

Converts a map coordinate to a point in the specified coordinate space.

[`convert(_:from:)`](/documentation/MapKit/MapProxy/convert(_:from:))

Converts a point in the specified coordinate space to a map coordinate.



---

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)