exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6.01k stars 554 forks source link

Filling shape with color is slow. #635

Open topDev15 opened 4 years ago

topDev15 commented 4 years ago

I'm using this framework to show SVG file and changing color of Shape. Btw filling color is slow. It takes 1 second for changing color of shape. shape.fill = Color.white

How can I speed up?

amarunko commented 4 years ago

Hi, @AndreasB115, did you make time investigation which functions/parts of Framework actually slow?

topDev15 commented 4 years ago

@amarunko Yes, It takes about 1 second when I'm trying to change color.

topDev15 commented 4 years ago

hi @amarunko

I found following in SVGKFastImageView.h:

Where can I find this project: iOS-Demo.xcodeproj?

amarunko commented 4 years ago

Bad case, I will try out the reason. About scroll view - I didn't know, but I think using UIGestures with macaw is a better approach because Macaw uses custom rendering. This example related to libraries which we didn't use.

Actually, for zooming in macaw, you can use special classes - MacawZoom