init(_:coordinate:)
Creates a marker at the given location with the label you provide.
Declaration
@MainActor @preconcurrency init<S>(_ title: S, coordinate: CLLocationCoordinate2D) where Label == Text, S : StringProtocolParameters
- title:
The label for the marker.
- coordinate:
The coordinate used to display the marker.