Contents

rotate(_:withVelocity:)

Sends a rotation gesture with two touches.

Declaration

func rotate(_ rotation: CGFloat, withVelocity velocity: CGFloat)

Parameters

  • rotation:

    The rotation of the gesture in radians.

  • velocity:

    The velocity of the rotation gesture in radians per second.

Discussion

The system makes a best effort to synthesize the requested rotation and velocity, but absolute accuracy isn’t guaranteed. Some values may not be possible based on the size of the element’s frame, and they result in test failures.

See Also

Performing gestures