onEnded(_:) doesn't perform the action when the gesture cancels.
updating(_:body:) sets the GestureState to the default value when the gesture cancels, but it doesn't call the callback.
Is there any way to detect the cancelation of a DragGesture and perform an action?
updating(_:body:) sets the GestureState to the default value when the gesture cancels, but it doesn't call the callback.
Is there any way to detect the cancelation of a DragGesture and perform an action?