Contents

liftBehavior

A value that controls the timing behavior for initiating a drag gesture from a touch.

Declaration

var liftBehavior: UIDragInteraction.LiftBehavior { get set }

Discussion

The default value is UIDragInteraction.LiftBehavior.default, which uses the standard lift timing parameters.

Set this property to UIDragInteraction.LiftBehavior.extended in gesture-rich views where recognizers compete for the same touches. The extended behavior increases the lift delay and cancels the drag when a second touch is detected, allowing other long-press gestures on the same view to activate before the drag begins.

For pointer-initiated drags, use allowsPointerDragBeforeLiftDelay to control whether pointer drags respect the lift delay independently of this property.

See Also

Configuring lift behavior