Contents

angle

The angle, in radians, of the force vector for the behavior.

Declaration

var angle: CGFloat { get set }

Discussion

The default angle is 0 radians, using standard UIKit geometry. To configure the force vector for a push behavior, set the magnitude property as well as the angle property.

Alternatively, you can express the direction of force by using x and y components with the pushDirection property. Whichever approach you use, the alternate, equivalent values update automatically.

See Also

Configuring a push behavior