<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/Annotation/init(coordinate:anchor:accessoryAnchor:content:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI10AnnotationV10coordinate6anchor15accessoryAnchor7content5labelACyxq_GSo22CLLocationCoordinate2DV_0cD09UnitPointVANq_yXExyXEtcfc"
  },
  "title" : "init(coordinate:anchor:accessoryAnchor:content:label:)"
}
-->

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

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

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

## Parameters

`coordinate`

The coordinate position of the annotation.

`anchor`

A <doc://com.apple.documentation/documentation/SwiftUI/UnitPoint> value that indicates how to position the content around the provided coordinate.

`accessoryAnchor`

A <doc://com.apple.documentation/documentation/SwiftUI/UnitPoint> value that indicates how to place accessories around the provided content.

`content`

The view to place on the map.

`label`

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

---

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)