<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DragGesture/init(minimumDistance:coordinateSpace:inputKinds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11DragGestureV15minimumDistance15coordinateSpace10inputKindsAC14CoreFoundation7CGFloatV_xAA0d5InputJ0VtcAA010CoordinateH8ProtocolRzlufc"
  },
  "title" : "init(minimumDistance:coordinateSpace:inputKinds:)"
}
-->

# 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.

```
@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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)