Closed leogdion closed 4 years ago
I posted a start to a fix here: https://github.com/brightdigit/SwiftDraw/tree/feature/fix-references
Thanks for reporting the issue @leogdion. I have pushed a localised fix that addresses just the LinearGradient case. I suppose I need to look at a more generalised solution as any element could possibly reference another def.
Latest release https://github.com/swhitty/SwiftDraw/releases/tag/0.7.2
Yeah the result doesn't seem to be have the gradient there. I'm wondering if it has to do with gradientUnits="userSpaceOnUse"
which would throw off the gradient coordinates.
Thanks @leogdion. 0.7.3
adds support for gradientUnits="userSpaceOnUse"
Sample SVG File Attached apple.svg.zip