<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI14UserAnnotationV"
  },
  "title" : "UserAnnotation"
}
-->

# UserAnnotation

Displays the person’s current location on the map.

```
@MainActor @preconcurrency struct UserAnnotation<Content> where Content : View
```

## Overview

Displays the person’s current location using the system styled user location indicator.

## Topics

### Creating a user annotation

[`init()`](/documentation/MapKit/UserAnnotation/init())

Creates an annotation that displays the person’s current location.

[`init(anchor:)`](/documentation/MapKit/UserAnnotation/init(anchor:))

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

[`init(anchor:content:)`](/documentation/MapKit/UserAnnotation/init(anchor:content:)-8u3r4)

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

[`init(anchor:content:)`](/documentation/MapKit/UserAnnotation/init(anchor:content:)-3e78j)

Create an annotation that displays the person’s current location of the user using a custom view.

### Setting the visibility of the title and subtitle

[`annotationTitles(_:)`](/documentation/MapKit/MapContent/annotationTitles(_:))

Sets the visibility of titles for markers and annotations.

[`annotationSubtitles(_:)`](/documentation/MapKit/MapContent/annotationSubtitles(_:))

Sets the visibility of subtitles for markers and annotations.

### Information about a person’s location

[`UserLocation`](/documentation/MapKit/UserLocation)

A structure that contains Information about the person’s current location.

### Setting the overlay level

[`mapOverlayLevel(level:)`](/documentation/MapKit/MapContent/mapOverlayLevel(level:))

Specifies the position of overlays relative to other map content.

### Setting the tag

[`tag(_:)`](/documentation/MapKit/MapContent/tag(_:))

Sets the unique tag value of this piece of map content.

### Type aliases

[`Body`](/documentation/MapKit/MapContent/Body-swift.associatedtype)

The content and behavior of the view.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`MapContent`](/documentation/MapKit/MapContent)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)