In my app I have a draggable UIView
to which I have added a UIPinchGestureRecognizer
. Following this tutorial, as default the view is scaled along both x and y directions. Is it possibile to scale along only one direction using one finger? I mean, for example, I tap the UIView
both with thumb and index fingers as usual but while I'am holding the thumb I could move only the index finger in one direction and then the UIView
should scale along that dimension depending on the direction in which the index moves.
Actually, I have achieved this by adding pins to my UIView
like the following:
I was just thinking my app might be of better use using UIPinchGestureRecognizer
.
I hope I have explained myself, if you have some hints or tutorial or documentation to link to me I would be very grateful.