<!--
{
  "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/MapReader",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A6ReaderV"
  },
  "title" : "MapReader"
}
-->

# MapReader

A container view that defines its contents as a function of information about the first contained map.

```
@MainActor @preconcurrency struct MapReader<Content> where Content : View
```

## Overview

The map reader’s content builder receives a [`MapProxy`](/documentation/MapKit/MapProxy) instance. You can use this instance to get the information you’ll need to convert between a [`MapCamera`](/documentation/MapKit/MapCamera) and a [`MKMapRect`](/documentation/MapKit/MKMapRect) or [`MKCoordinateRegion`](/documentation/MapKit/MKCoordinateRegion).

## Topics

### Creating a map reader

[`init(content:)`](/documentation/MapKit/MapReader/init(content:))

Creates an instance that allows view content to reference information about a contained map.

### Managing Look Around view presentation

  <doc://com.apple.documentation/documentation/SwiftUI/View/lookAroundViewer(isPresented:initialScene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:)>

  <doc://com.apple.documentation/documentation/SwiftUI/View/lookAroundViewer(isPresented:scene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:)>

### Managing map controls

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapControlVisibility(_:)>

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapControls(_:)>

### Managing the camera

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapCameraKeyframeAnimator(trigger:keyframes:)>

  <doc://com.apple.documentation/documentation/SwiftUI/View/onMapCameraChange(frequency:_:)-2pcga>

  <doc://com.apple.documentation/documentation/SwiftUI/View/onMapCameraChange(frequency:_:)>

### Managing feature selection

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapFeatureSelectionContent(content:)>

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapFeatureSelectionDisabled(_:)>

### Setting the namespace Identifier

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapScope(_:)>

### Setting the map style

  <doc://com.apple.documentation/documentation/SwiftUI/View/mapStyle(_:)>

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`View`](/documentation/SwiftUI/View)

---

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)