---
title: velocityInObject()
framework: watchkit
role: symbol
role_heading: Instance Method
path: watchkit/wkpangesturerecognizer/velocityinobject()
---

# velocityInObject()

The velocity of the pan gesture in the current object.

## Declaration

```swift
func velocityInObject() -> CGPoint
```

## Return Value

Return Value The velocity of the gesture, which is expressed in points per second. The x field contains the horizontal velocity and the y field contains the vertical velocity.

## See Also

### Tracking the Location and Velocity of the Gesture

- [translationInObject()](watchkit/wkpangesturerecognizer/translationinobject().md)
