touchesCancelled(_:with:)
Sent to the gesture recognizer when a system event (such as an incoming phone call) cancels a touch event.
Declaration
@MainActor @preconcurrency override dynamic func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent)Parameters
- touches:
A set of
UITouchinstances in the event represented byeventthat represent the touches in theUITouch.Phase.cancelledphase. - event:
A
UIEventobject representing the event to which the touches belong.