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

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

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

```
@MainActor @preconcurrency init<S>(_ title: S, coordinate: CLLocationCoordinate2D, anchor: UnitPoint = .center, @ViewBuilder content: () -> Content) where Label == Text, S : StringProtocol
```

## Parameters

`title`

The title of the annotation.

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

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