Reputation: 534
How to differentiate if user zoomed in or zoomed out on a view?
Is there any direct property/method available to detect the same?
Thanks
Upvotes: 0
Views: 95
Reputation: 1666
If you are using UIPinchGestureRecognizer
then you can do that using gestureRecognizer.velocity
property.
Value of velocity is negative when current scale is smaller then previous and positive when it scale increases.
Upvotes: 2