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

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

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

```
@MainActor @preconcurrency init(_ titleKey: LocalizedStringKey, coordinate: CLLocationCoordinate2D, anchor: UnitPoint = .center, accessoryAnchor: UnitPoint, @ViewBuilder content: () -> Content) where Label == Text
```

## Parameters

`titleKey`

The localized string key to use to look up the title.

`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.

---

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)