Pinchable
| Discussion thread | Status |
|---|---|
| N/A | Stable |
| Android | Apple | Web | |
|---|---|---|---|
| Milestone | Milestone | Milestone |
Overview
Enables an element's size to be scaled using a pinch gesture.
Contract
Scale amount from the given gesture recognizer are multiplied to the target's scale.x and scale.y. If no gesture recognizer is provided, then one is created.
Plan Pinchable {
GestureRecognizer pinchGestureRecognizer?
Bool shouldAdjustAnchorPointOnGestureStart = true
}
Performer considerations
If shouldAdjustAnchorPointOnGestureStart is true, then ChangeAnchorPoint is emitted when the gesture recognizer starts.