init(_:image:coordinate:)
Creates a marker at the given location with an image displayed as the balloon’s icon.
Declaration
@MainActor @preconcurrency init(_ titleResource: LocalizedStringResource, image: String, coordinate: CLLocationCoordinate2D) where Label == Label<Text, Image>Parameters
- titleResource:
The localized string for the title.
- image:
The name of the image resource to look up and use as the marker balloon’s glyph.
- coordinate:
The coordinate to display the marker at.