Macaw
Macaw copied to clipboard
Wrong SVG rendering
This SVG file is rendered with errors:
http://s000.tinyupload.com/?file_id=51455686831478467750
The image shows how Macaw displays it(top), and how it should be(bottom):
I see two problems here:
- Gradient is rendered just as plain black, not green to white as it should be
- Path of the gradient is wrong, it should go all the way to the bottom instead of going right from end of path to beginning
Is there any workarounds these errors? Will it be fixed?
thanks for the Cocoapod anyway, it is pretty cool
Hi, @sam-moshenko, one of the problems related to the wrong gradient stops parsing, I will try to fix this soon, also you can always help by sending a PR.
Fix for gradient stops - https://github.com/exyte/Macaw/pull/638
After merging PR linear gradient parsed correctly, but black parts are still there. Looks like a rendering issue.
Honestly, I didn't find any white fill for all SVG/Group, only fill = "none", which one btw not parsed, but shouldn't affect anything for this SVG, maybe I missed something.
Maybe this is too late but I had the same issue and adding a transparent fill to the path in the SVG solved the problem