Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, didChange newState: MKAnnotationViewDragState, fromOldState oldState: MKAnnotationViewDragState) {
- switch newState {
- case .starting:
- view.dragState = .dragging
- print("start")
- case .ending, .canceling:
- view.dragState = .none
- print("end")
- // Code to open Add new Annotation
- default: break
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement