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

# init(coordinate:anchor:content:label:)

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

```
@MainActor @preconcurrency init(coordinate: CLLocationCoordinate2D, anchor: UnitPoint = .center, @ViewBuilder content: () -> Content, @ViewBuilder label: () -> Label)
```

## Parameters

`coordinate`

The coordinate position of the annotation.

`anchor`

How to place the content around the provided coordinate.

`content`

The view to place on the map.

`label`

The label for the annotation, including a title, and optional subtitle.

## Discussion

---

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)