Contents

init(_:systemImage:coordinate:)

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

Declaration

@MainActor @preconcurrency init(_ titleKey: LocalizedStringKey, systemImage: String, coordinate: CLLocationCoordinate2D) where Label == Label<Text, Image>

Parameters

  • titleKey:

    The localized string key to use to lookup the title.

  • systemImage:

    The name of the system image or SF Symbol to use as the marker balloon’s glyph.

  • coordinate:

    The coordinate at which to display the marker.

See Also

Creating a marker