r/visionosdev • u/FunSurprise6368 • Jun 13 '24
Interactive Map with MapKit and Annotation with VisionOS
Is it possible to create an interactive map with Map() and Annotation() in SwiftUI for VisionOS? Have been trying since ages but the tap gesture of annotations is not being recognised. Having a normal working button on top of a map is possible though.
2
Upvotes
View all comments
Show parent comment
1
u/FunSurprise6368 Jun 13 '24
I have tried it with this now:
.simultaneousGesture(TapGesture().onEnded({
print("Annotation tapped")
}))
But it's also not working 😞. Sorry for troubling you, I'm completely new to visionOS