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

# init(item:anchor:accessoryAnchor:content:)

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

```
@MainActor @preconcurrency init(item: MKMapItem, anchor: UnitPoint = .center, accessoryAnchor: UnitPoint = .center, @ViewBuilder content: () -> Content) where Label == Text
```

## Parameters

`item`

A map item that provides a label and coordinate for 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)