init(minimumDistance:coordinateSpace:inputKinds:)
Creates a dragging gesture with the minimum dragging distance before the gesture succeeds, the coordinate space of the gesture’s location, and the input kinds the gesture recognizes.
Declaration
@MainActor @preconcurrency init(minimumDistance: CGFloat = 10, coordinateSpace: some CoordinateSpaceProtocol = .local, inputKinds: GestureInputKinds = .all)Parameters
- minimumDistance:
The minimum distance a person needs to drag before the drag gesture begins.
- coordinateSpace:
The coordinate space of the dragging gesture’s location.
- inputKinds:
A set of input kinds that this gesture recognizes. If not specified, the gesture will recognize all applicable input kinds that a person can use to perform it.