I have a drawing app that uses UIBezierpaths (vectors) and I'm trying to create a function that allows me to zoom around the canvas/UIView like other drawing apps do. I do not want to enlarge individual bezierpaths, I already know how to do that. I want a pinch to zoom functionality like safari that zooms the canvas/view.
If I use the following code:
self.transform = CGAffineTransform(scaleX: 2, y: 2)
Turns into this, which you'll notice is quite blurry/not smooth like vectors are supposed to be:
But I want it to look something like this, which is what would happen on another drawing app
I understand this question may have a complicated answer, but I'm struggling to find that answer by myself.