Post

Replies

Boosts

Views

Activity

Reply to MapKit UI - Marker / Protocol help
The approach would be to iterate inside the map using ForEach() to add the markers. Add a title string property to IdentifiableAnnotation and display it as such: Map(coordinateRegion: $locationManager.region, interactionModes: .all, showsUserLocation: true, userTrackingMode: .none) { ForEach(courtAnnotations) { item in Marker(item.title, coordinate: item.annotation.coordinate) } }
Apr ’24
Reply to PortalComponent – allow world content to peek out
Portals have been enhanced this year with the ability to cross portal boundaries. It's discussed around the 20 minute mark, "Portal Enhancements" in the following video: https://developer.apple.com/videos/play/wwdc2024/10103/
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to Why VisionOS has no MapKit Annotation tapping interaction support?
When tapping anywhere on a Map view, I get a warning "Trying to convert coordinates between views that are in different UIWindows, which isn't supported. Use convertPoint:fromCoordinateSpace: instead." I'd guess it's got something to do with that.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to MapKit UI - Marker / Protocol help
The approach would be to iterate inside the map using ForEach() to add the markers. Add a title string property to IdentifiableAnnotation and display it as such: Map(coordinateRegion: $locationManager.region, interactionModes: .all, showsUserLocation: true, userTrackingMode: .none) { ForEach(courtAnnotations) { item in Marker(item.title, coordinate: item.annotation.coordinate) } }
Replies
Boosts
Views
Activity
Apr ’24