Contents

init(coordinate:label:)

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

Declaration

@MainActor @preconcurrency init(coordinate: CLLocationCoordinate2D, @ViewBuilder label: () -> Label)

Parameters

  • coordinate:

    The coordinate used to display the marker.

  • label:

    A label for the marker.

See Also

Creating a marker