Closed glennposadas closed 4 years ago
Hi Yuri @ystrot! Shamelessly tagging you, sorry! But I think I made the question more straightforward, maybe you can help me here? And to other Macaw team. Thank you so much!
Hi @glennposadas,
I don't see explicit issues in your code. Probably you don't need to call color.replacingOccurrences(of: "#", with: "")
for every node, just calculate Color
once and use it.
Most probably your issue relates to performance of complex SVG rendering. You may try to profile your app to find the bottleneck. One of the most common way to optimize your rendering is to draw complex parts to images and then draw images (which is usually much faster).
Huge edit:
When applying fill changes of shapes in a large numbers of shapes, hence the title complex SVGs, the performance is way too slow.
GET ALL SHAPES:
ADDING TAPS TO EACH SHAPE
CHANGE FILL/COLOR
Is there something wrong I'm doing here? Help please! Thank you!