touchesMoved(_:with:)
Tells the view when one or more touches associated with an event changed.
Declaration
@MainActor @preconcurrency override dynamic func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?)Parameters
- touches:
A set of
UITouchinstances that represent the touches whose values changed. These touches all belong to the specifiedevent. For touches in a view, this set contains only one touch by default. To receive multiple touches, set the view’s Ismultipletouchenabled property totrue. - event:
The event to which the touches belong.
Discussion
See touchesMoved(_:with:) for more information.