.mapFeatureSelectionAccessory(.automatic) shows a Place Card with a fixed directions action that always routes through Apple Maps. There's no modifier today that lets you intercept that tap or substitute your own routing engine. However you can register your app as a routing app so Apple Maps and other apps can hand off directions requests to your app. See Configuring Maps support.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: