DRag gesture should be used. onEnded does not get called in your case as it is conflicting with inbuilt gestures from apple. Embedd DragGesture in .simultaneousGesture instead of .gesture.
Topic:
App & System Services
SubTopic:
Maps & Location
Tags: