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

# Annotation

A customizable annotation used to indicate a location on a map.

```
@MainActor @preconcurrency struct Annotation<Label, Content> where Label : View, Content : View
```

## Overview

Use this view to annotations in the closure you provide to the `content` parameter in the [`Map`](/documentation/MapKit/Map) initializers.

## Topics

### Creating annotations

[`init(_:coordinate:anchor:accessoryAnchor:content:)`](/documentation/MapKit/Annotation/init(_:coordinate:anchor:accessoryAnchor:content:)-6rxmn)

Creates an annotation that displays a view at a coordinate on the map.

[`init(_:coordinate:anchor:accessoryAnchor:content:)`](/documentation/MapKit/Annotation/init(_:coordinate:anchor:accessoryAnchor:content:)-14m3t)

Creates an annotation that displays a view at a coordinate on the map.

[`init(coordinate:anchor:accessoryAnchor:content:label:)`](/documentation/MapKit/Annotation/init(coordinate:anchor:accessoryAnchor:content:label:))

Creates an annotation that displays a view at a coordinate on the map.

[`init(item:anchor:accessoryAnchor:content:)`](/documentation/MapKit/Annotation/init(item:anchor:accessoryAnchor:content:))

Creates an annotation that displays a view at a coordinate on the map.

[`init(_:coordinate:anchor:content:)`](/documentation/MapKit/Annotation/init(_:coordinate:anchor:content:)-2w242)

Creates an annotation that displays a view at a coordinate on the map.

[`init(_:coordinate:anchor:content:)`](/documentation/MapKit/Annotation/init(_:coordinate:anchor:content:)-6wnoh)

Creates an annotation that displays a view at a coordinate on the map using a title key, coordinate, anchor location, and view you provide.

[`init(coordinate:anchor:content:label:)`](/documentation/MapKit/Annotation/init(coordinate:anchor:content:label:))

Creates an annotation that displays a view on the map using coordinates, anchor location, view, and label you provide.

### Setting the visibility of the title and subtitle

### Setting the tag

### Type aliases

### Displaying place information

[`mapItemDetailSelectionAccessory(_:)`](/documentation/MapKit/MapContent/mapItemDetailSelectionAccessory(_:))

Specifies the selection accessory to display for the selected map item content.



---

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)
