How to zoom a UIScrollView to a specific scale and center that scaling at a specific CGPoint in Swift? (WITHOUT using a CGRect to zoom to)

Viewed 16

I have been working on a fractal animation app and have been adding animated zooming. For some unknown reason the standard UIView animation system hasn't been functioning in that project. So I have been using Timer.scheduledTimer to incrementally animate the panning animations using an array of touch points. Yesterday I added zooming animation using self.scrollView.zoomScale += 0.007, however making that zoom to a specific touch point has been challenging. When I set the scrollVIew center, it does set it, but it doesn't zoom to that point for some reason. Thanks in advance for advising!

0 Answers
Related