<!--
{
  "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/init(content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A6ReaderV7contentACyxGxAA0A5ProxyVc_tcfc"
  },
  "title" : "init(content:)"
}
-->

# init(content:)

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

```
@MainActor @preconcurrency init(@ViewBuilder content: @escaping (MapProxy) -> Content)
```

## Parameters

`content`

The content of the map reader uses to retrieve information about, it uses the first map the `content` contains.

## Return Value

Returns a [`MapProxy`](/documentation/MapKit/MapProxy) that allows you to introspect the content of a map.

---

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)