---
title: translation
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/draggesture/value/translation
---

# translation

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

## Declaration

```swift
var translation: CGSize { get }
```

## Discussion

Discussion This is equivalent to location.{x,y} - startLocation.{x,y}.

## See Also

### Getting 2D position

- [startLocation](swiftui/draggesture/value/startlocation.md)
- [location](swiftui/draggesture/value/location.md)
- [predictedEndLocation](swiftui/draggesture/value/predictedendlocation.md)
- [predictedEndTranslation](swiftui/draggesture/value/predictedendtranslation.md)
