Rotatable
Discussion thread | Status |
---|---|
N/A | Stable |
Android | Apple | Web | |
---|---|---|---|
Milestone | Milestone | Milestone |
Overview
Enables an element to be rotated about the z axis with a gesture.
Contract
Z rotation from the given gesture recognizer is added to the target's rotation.z
. If no gesture recognizer is provided, then one is created.
Plan Rotatable {
GestureRecognizer rotationGestureRecognizer?
Bool shouldAdjustAnchorPointOnGestureStart = true
}
Performer considerations
If shouldAdjustAnchorPointOnGestureStart
is true, then ChangeAnchorPoint
is emitted when the gesture recognizer starts.