---
title: pushDirection
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipushbehavior/pushdirection
---

# pushDirection

The direction of the force vector for the behavior, expressed as x and y components and using standard UIKit geometry.

## Declaration

```swift
var pushDirection: CGVector { get set }
```

## Discussion

Discussion The default x and y values of the push direction vector are each 0.0. A value for either component of 1.0, applied to a 100 point x 100 point view, whose density value is 1.0, results in view acceleration of 100 points / second² in the positive direction for the component. Setting either direction component to a negative value reverses the direction of force for the component. Whether you express a push behavior’s push direction in terms of x, y components or with an angle (by using the angle property), the alternate, equivalent value updates automatically.

## See Also

### Configuring a push behavior

- [setAngle(_:magnitude:)](uikit/uipushbehavior/setangle(_:magnitude:).md)
- [angle](uikit/uipushbehavior/angle.md)
- [magnitude](uikit/uipushbehavior/magnitude.md)
- [mode](uikit/uipushbehavior/mode-swift.property.md)
- [setTargetOffsetFromCenter(_:for:)](uikit/uipushbehavior/settargetoffsetfromcenter(_:for:).md)
- [targetOffsetFromCenter(for:)](uikit/uipushbehavior/targetoffsetfromcenter(for:).md)
