I want to pinch in and out the image displayed on Swift.

Asked 2 months ago, Updated 2 months ago, 3 views

I was able to display the image and recognize the pinch, but it didn't work even after looking at various sites.(I tried to rewrite it in my own way)
How can I set zoom as a pinch event?

swift image pinchin

2022-09-30 12:06

1 Answers

All you can get from the pinch event is information about how much you moved your fingers. You need to write your own code to enlarge it.
Or, if you use UIScrollView, you can expand it to feel like you don't need to write it yourself.

2022-09-30 12:06

If you have any answers or tips

© 2022 OneMinuteCode. All rights reserved.