---
title: AnyMapContent
framework: mapkit
role: symbol
role_heading: Structure
path: mapkit/anymapcontent
---

# AnyMapContent

A type-erased map content.

## Declaration

```swift
@MainActor @preconcurrency struct AnyMapContent
```

## Overview

Overview An AnyMapContent allows changing the type of content used in a given map view.

## Topics

### Initializers

- [init(_:)](mapkit/anymapcontent/init(_:).md)

## Relationships

### Conforms To

- [MapContent](mapkit/mapcontent.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
