How to get pinch, zoom, and rotate actions of pan gestures in swift with single finger or button, for details image is attached

195 Views Asked by At

Pan gestures are new to me, so apologies if question is confusing but Here is the image attached for clearing the question

enter image description here

I got multiple guides but all are using minimum 2 fingers. I want to use bottom right button to resize and rotate this text view/Label/view Any guide or reference link will be appreciated

1

There are 1 best solutions below

0
Ivan Titkov On

you can use 3 different GR, like pan, rotate, and scale.

But after research, I've found out that, when you make for example zoom, you automatically make really small dragging with your fingers, so at the same time you can get rotation event from corresponding GR, it could make many corner issues, when you have conflicting GRs.

So as at seems to me the best option is used pan gest with one finger for moving and use rotation and scale gests for scale and rotate.