<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DragGesture/Value",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11DragGestureV5ValueV"
  },
  "title" : "DragGesture.Value"
}
-->

# DragGesture.Value

The attributes of a drag gesture.

```
struct Value
```

## Topics

### Getting 2D position

[`startLocation`](/documentation/SwiftUI/DragGesture/Value/startLocation)

The location of the drag gesture’s first event.

[`location`](/documentation/SwiftUI/DragGesture/Value/location)

The location of the drag gesture’s current event.

[`predictedEndLocation`](/documentation/SwiftUI/DragGesture/Value/predictedEndLocation)

A prediction, based on the current drag velocity, of where the final
location will be if dragging stopped now.

[`translation`](/documentation/SwiftUI/DragGesture/Value/translation)

The total translation from the start of the drag gesture to the
current event of the drag gesture.

[`predictedEndTranslation`](/documentation/SwiftUI/DragGesture/Value/predictedEndTranslation)

A prediction, based on the current drag velocity, of what the final
translation will be if dragging stopped now.

### Getting 3D position

[`startLocation3D`](/documentation/SwiftUI/DragGesture/Value/startLocation3D)

The 3D start location of the drag gesture.

[`location3D`](/documentation/SwiftUI/DragGesture/Value/location3D)

The 3D location of the drag gesture.

[`predictedEndLocation3D`](/documentation/SwiftUI/DragGesture/Value/predictedEndLocation3D)

A prediction of where the final location would be if
dragging stopped now, based on the current drag velocity.

[`translation3D`](/documentation/SwiftUI/DragGesture/Value/translation3D)

The translation of the drag gesture
from `startLocation3D` to `location3D`.

[`predictedEndTranslation3D`](/documentation/SwiftUI/DragGesture/Value/predictedEndTranslation3D)

A prediction of what the final translation would be if
dragging stopped now, based on the current drag velocity.

[`startInputDevicePose3D`](/documentation/SwiftUI/DragGesture/Value/startInputDevicePose3D)

The starting 3D pose of the device driving the drag, if one exists.

[`inputDevicePose3D`](/documentation/SwiftUI/DragGesture/Value/inputDevicePose3D)

The 3D pose of the device driving the drag, if one exists.

### Handling changes over time

[`time`](/documentation/SwiftUI/DragGesture/Value/time)

The time associated with the drag gesture’s current event.

[`velocity`](/documentation/SwiftUI/DragGesture/Value/velocity)

The current drag velocity.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)