adamwulf / JotUI

OpenGL based drawing view built for and used by Loose Leaf for iPad
http://getlooseleaf.com/opensource/
MIT License
268 stars 28 forks source link

Can We add zoom functionality ? Is it possible ? #11

Closed KrLikeblue closed 7 years ago

KrLikeblue commented 7 years ago

Hello Adam,

Can We add zooming feature so that user can draw with perfection ? What we will have to do to achieve zooming functionality ?

Waiting for your answer.

thanks.

adamwulf commented 7 years ago

For Loose Leaf, I found the best way to handle zoom was to set a transform on the view itself. Don't resize the frame to change the size, but just setting a CGAffineScaleTransform from a pan gesture works great.

KrLikeblue commented 7 years ago

Ok, I will try...