How to detect the cancelation of a DragGesture?

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?

I ran into the same problem with DragGesture.

Even worse, when I slide in the Control Center or the notifications, my app's onChanged(_:) action block gets called, but never the one of onEnded(_:), leaving my app in an ill state.

Did you find any workaround already?
How to detect the cancelation of a DragGesture?
 
 
Q