SwiftUI MapKit Map - Selecting Points of Interest

Is it possible to let the user select points of interest on the Map, such as restaurants, grocery stores, gas stations etc. I want the user to be able to select these points of interest that are already on the map, not those that I add to the map. Is this possible with the SwiftUI version of the MapKit Map?

Answered by DTS Engineer in 811635022

Yes, that's possible! Add the mapFeatureSelectionAccessory(_:) modifier to your Map.

—Ed Ford,  DTS Engineer

Yes, that's possible! Add the mapFeatureSelectionAccessory(_:) modifier to your Map.

—Ed Ford,  DTS Engineer

SwiftUI MapKit Map - Selecting Points of Interest
 
 
Q