MKLaunchOptionsDirectionsModeCycling
Cycling directions between the specified start and end points.
Declaration
let MKLaunchOptionsDirectionsModeCycling: StringDiscussion
You can use this launch options key to open the Maps app directly in the mode that enables route planning that returns cycling directions, as shown in this example.
Button("Cycling Directions") {
selectedItem.openInMaps(
launchOptions: [MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeCycling]
)
}See Also
Launch options
MKLaunchOptionsCameraKeyMKLaunchOptionsDirectionsModeDefaultMKLaunchOptionsDirectionsModeDrivingMKLaunchOptionsDirectionsModeKeyMKLaunchOptionsDirectionsModeTransitMKLaunchOptionsDirectionsModeWalkingMKLaunchOptionsMapCenterKeyMKLaunchOptionsMapSpanKeyMKLaunchOptionsMapTypeKeyMKLaunchOptionsShowsTrafficKey