---
title: "init(anchor:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/userannotation/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.

## Declaration

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

## See Also

### Creating a user annotation

- [init()](mapkit/userannotation/init().md)
- [init(anchor:content:)](mapkit/userannotation/init(anchor:content:)-8u3r4.md)
- [init(anchor:content:)](mapkit/userannotation/init(anchor:content:)-3e78j.md)
