I have a view which the user can pinch to grow or shrink. I’d like this to work along two axes – if the pinch is mostly horizontal, it will grow/shrink the object horizontally, but if the pinch is mostly vertical, it will grow/shrink the object vertically.
Can I achieve this with one or two pinch recognizers, and if so, how?
You might be able to use a
UIPinchGestureRecognizerfor this, but you will have to write code to figure out if the pinch is horizontal or vertical. I haven’t tested this: