they say: "to provide users with the option to run native Apple cards ..."
what you can do is show an action sheet with three options:
user selects ...
one of the options for shoukd - Apple cards, execute the cards option as follows:
let regionDistance:CLLocationDistance = 100 let coordinates = CLLocationCoordinate2DMake(lat, lon) let regionSpan = MKCoordinateRegionMakeWithDistance(coordinates, regionDistance, regionDistance) let options = [ MKLaunchOptionsMapCenterKey: NSValue(mkCoordinate: regionSpan.center), MKLaunchOptionsMapSpanKey: NSValue(mkCoordinateSpan: regionSpan.span), MKLaunchOptionsDirectionsModeKey: motType = MKLaunchOptionsDirectionsModeDriving ] as [String : Any] let mapItem = MKMapItem(placemark: MKPlacemark(coordinate: coordinates, addressDictionary: nil)) mapItem.name = placeName mapItem.openInMaps(launchOptions: options)
source share