mchoe / SwiftSVG

A simple, performant, and lightweight SVG parser
Other
1.92k stars 230 forks source link

SwiftSVG render one file with incorrect orientation #145

Closed alexanderkhitev closed 4 years ago

alexanderkhitev commented 4 years ago

SwiftSVG renders one file with incorrect orientation. For example, this file has been displayed as inverted. You can check this in Google Chrome TestMask.svg.zip

mchoe commented 4 years ago

Looks like the sample SVG uses the <use> tag where the fill and transforms are applied. Unfortunately, the library doesn't support that tag at this time which is why the SVG isn't rendered properly. If you have control over the SVG, you can replace the <use> tag with a <path> tag and cut and paste the path data into the <path> tag.