Instance Method

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 is not guaranteed. Some values may not be possible based on the size of the element's frame; these will result in test failures.

See Also

Performing Gestures

func swipeLeft()

Sends a swipe-left gesture.

func swipeRight()

Sends a swipe-right gesture.

func swipeUp()

Sends a swipe-up gesture.

func swipeDown()

Sends a swipe-down gesture.

func pinch(withScale: CGFloat, velocity: CGFloat)

Sends a pinching gesture with two touches.