init(minimumDuration:maximumDistance:)
Creates a long-press gesture with a minimum duration and a maximum distance that the interaction can move before the gesture fails.
Declaration
init(minimumDuration: Double = 0.5, maximumDistance: CGFloat = 10)Parameters
- minimumDuration:
The minimum duration of the long press that must elapse before the gesture succeeds.
- maximumDistance:
The maximum distance that the fingers or cursor performing the long press can move before the gesture fails.