This is an example app for a MapKit Implementation. It adds a long gesture to a MapView, the UIView lcoation is converted to a MapLocation and a Annotation is added to the Map.
Xcode 10.1, Swift 4.2, MapKit
Download Zip file and open AddLocationOnMapWithLongTouch.xcodeproj
Run app
Touch and hold on a map location to add a pin there
Click on the pin for further information
Publiuc Domain