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

# Marker

A balloon-shaped annotation that marks a map location.

```
@MainActor @preconcurrency struct Marker<Label> where Label : View
```

## Overview

Use this view to create marker instances in the closure you provide to the `content` parameter in the [`Map`](/documentation/MapKit/Map) initializers.

## Topics

### Creating a marker

[`init(_:coordinate:)`](/documentation/MapKit/Marker/init(_:coordinate:)-82942)

Creates a marker at the given location with the label you provide.

[`init(_:image:coordinate:)`](/documentation/MapKit/Marker/init(_:image:coordinate:)-36l1p)

Creates a marker at the given location with the provided title and image resource to display as the balloon’s icon.

[`init(_:systemImage:coordinate:)`](/documentation/MapKit/Marker/init(_:systemImage:coordinate:)-50yl4)

Creates a marker at the given location with the provided title and a system image the map displays as the balloon’s icon.

[`init(_:coordinate:)`](/documentation/MapKit/Marker/init(_:coordinate:)-8wxlv)

Creates a marker at the given location with the localized string key you provide.

[`init(_:image:coordinate:)`](/documentation/MapKit/Marker/init(_:image:coordinate:)-28mge)

Creates a marker at the given location with the provided localized title and image resource to display as the balloon’s icon.

[`init(_:monogram:coordinate:)`](/documentation/MapKit/Marker/init(_:monogram:coordinate:)-2ojcy)

Creates a marker at the given location with the provided title key and monogram.

[`init(_:monogram:coordinate:)`](/documentation/MapKit/Marker/init(_:monogram:coordinate:)-21hql)

Creates a marker at the given location with the provided title string and monogram.

[`init(_:systemImage:coordinate:)`](/documentation/MapKit/Marker/init(_:systemImage:coordinate:)-2t4i0)

Creates a marker at the given location with a localized title, and a system image the map displays as the balloon’s icon.

[`init(coordinate:label:)`](/documentation/MapKit/Marker/init(coordinate:label:))

Creates a marker at the given location with the provided label.

[`init(item:)`](/documentation/MapKit/Marker/init(item:))

Creates a marker for a given map item using a MapKit-provided label.

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

### Styling the marker

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

The tint shape style to apply to 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.

### Displaying place information

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

Specifies the selection accessory to display for the selected map item content.

## Relationships

### Conforms To

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

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

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

---

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)