Contents

touchesCancelled(_:with:)

Tells the view when a system event (such as a system alert) cancels a touch sequence.

Declaration

@MainActor @preconcurrency override dynamic func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?)

Parameters

  • touches:

    A set of UITouch instances that represent the touches whose values changed. These touches all belong to the specified event. For touches in a view, this set contains only one touch by default. To receive multiple touches, set the view’s Ismultipletouchenabled property to true.

  • event:

    The event to which the touches belong.

Discussion

See touchesCancelled(_:with:) for more information.

See Also

Handling touch input