pushDirection
The direction of the force vector for the behavior, expressed as x and y components and using standard UIKit geometry.
Declaration
var pushDirection: CGVector { get set }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.