Contents

init(item:)

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

Declaration

@MainActor @preconcurrency init(item: MKMapItem) where Label == Text

Parameters

  • item:

    An Mkmapitem that provides a label for the marker.

Discussion

MapKit composes a label using available information, such as the name property of label.

See Also

Creating a marker