swhitty/SwiftDraw

SVG Files with No Stop and Xlink:href don't work

leogdion opened this issue · 5 comments

Sample SVG File Attached
apple.svg.zip

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.

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"