RotationGesture
public struct RotationGesture : Gesture
Wrapper of UIRotationGestureRecognizer A discrete gesture recognizer that interprets rotation gestures involving two touches.
-
The action to handle the gesture recognized by the receiver.
Declaration
Swift
public var action: (UIGestureRecognizer) -> Void { get } -
The gesture behind the RotationGesture.
Declaration
Swift
public var gesture: UIGestureRecognizer { get } -
Initializer
Declaration
Swift
public init(rotation: CGFloat, onRotationGesture: @escaping (_ gesture: UIGestureRecognizer) -> Void)Parameters
rotationThe rotation of the gesture in radians.
onRotationGestureThe action to handle the gesture recognized by the receiver.
RotationGesture Structure Reference