Initializer

init(minimumDistance:coordinateSpace:)

Creates a dragging gesture with the minimum dragging distance before the gesture succeeds and the coordinate space of the gesture’s location.

Declaration

init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)

Parameters

minimumDistance

The minimum dragging distance for the gesture to succeed.

coordinateSpace

The coordinate space of the dragging gesture’s location.

See Also

Creating a Drag Gesture

var minimumDistance: CGFloat

The minimum dragging distance before the gesture succeeds.

var coordinateSpace: CoordinateSpace

The coordinate space of the dragging gesture’s location.

typealias DragGesture.Body

A type that represents the drag gesture and its behavior.