Providing walking or driving directions from one place to another inside your application is easy with MapKit. You can also instruct the Apple Maps app to open up and route the user to a location – this could be useful if you think the user might just prefer to use a dedicated app.
Create another Swift iOS project in Xcode with the Single View Application template. Name your application DirectionsMapKitApp. Go ahead and add a map view to the only screen in the storyboard, and connect it to an outlet called mapView on the ViewController class . In the view controller, ...