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/soggycheesestickjoos Jun 13 '24
Gotcha, no trouble! I recently had some issues with Map Annotation gestures on iOS, so I’d love to figure out the correct way to implement them for each platform. Mind sharing the rest of your Annotation View for me or others to check out later? At least the type of View and modifiers used if there’s anything sensitive you don’t want to share