Annotation
A customizable annotation used to indicate a location on a map.
Declaration
@MainActor @preconcurrency struct Annotation<Label, Content> where Label : View, Content : ViewOverview
Use this view to annotations in the closure you provide to the content parameter in the Map initializers.
Topics
Creating annotations
init(_:coordinate:anchor:accessoryAnchor:content:)init(_:coordinate:anchor:accessoryAnchor:content:)init(coordinate:anchor:accessoryAnchor:content:label:)init(item:anchor:accessoryAnchor:content:)init(_:coordinate:anchor:content:)init(_:coordinate:anchor:content:)init(coordinate:anchor:content:label:)