amavi
amavi

Reputation: 534

How to differentiate if user zoomed in or zoomed out on view?

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

Answers (1)

Mohammad
Mohammad

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

Related Questions