I think they are called callouts.
I want to create custom map annotations using swiftUI Views in the map this is the code i'm using:
The custom map Annotation uses the view "EventMapAnnotation" to show a yellow circle that I'm using to test as a button. Now I want this button or this Annotation to show me a window or a view with more details about the location.
I've heard of something called a "Callout" But im not sure if the pure SwiftUI map supports it yet.
I want to create custom map annotations using swiftUI Views in the map this is the code i'm using:
Code Block Swift Map(coordinateRegion: $coordinateStart, interactionModes: interactionMode, showsUserLocation: true, userTrackingMode: $trackingMode, annotationItems: locations, annotationContent:{(location)in MapAnnotation(coordinate: location.coordinate){ EventMapAnnotation()} })
The custom map Annotation uses the view "EventMapAnnotation" to show a yellow circle that I'm using to test as a button. Now I want this button or this Annotation to show me a window or a view with more details about the location.
I've heard of something called a "Callout" But im not sure if the pure SwiftUI map supports it yet.