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

# init(anchor:)

Creates an annotation that displays the person’s current location using the system styled user location indicator with the specified anchor point.

```
@MainActor @preconcurrency init(anchor: UnitPoint = .center) where Content == EmptyView
```

## Parameters

`anchor`

How to anchor the user location indicator around the user’s location. The default is <doc://com.apple.documentation/documentation/SwiftUI/UnitPoint/center>.

---

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)