-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to scale SVGView #426
Comments
scrollView.addSubview(imgView) |
You can add a dummy view for scrollView. And the color of dummy view is clear color. You could get the contentOffset and scale in scrollViewDidScroll method. So you could change node.place of MacawView to scale or move it. |
Never try to change the frame size of MacawView to get a clear image. Memory will warn. |
Shouldn't be an issue anymore, so closing it. |
Hi,
Here is the explanation :
=> Got an UIScrollview with fixed Height
=> Got a jpg picture in that scrollview. I compute ratio so the picture fit in height and user can scroll horizontaly to view the all width
=> Got a SVGView over it with same size. ContentMode = ScaleToFill.
Unfortunately, the svg inside is not correctly scaled.
Does I have to scale it manually ? How ?
Here is the code for UIImageView sizing :
The text was updated successfully, but these errors were encountered: