---
title: "init(content:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mapreader/init(content:)"
---

# init(content:)

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

## Declaration

```swift
@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

Return Value Returns a MapProxy that allows you to introspect the content of a map.
