mchoe / SwiftSVG

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

Some SVG images are displayed, some not #134

Open rusakovam opened 5 years ago

rusakovam commented 5 years ago

Hi! I've got two SVG files, one of which is displayed good, while the other just looks blank when rendered.

Sketch editor, for instance, reads them both, as well as Chrome.

This one works: `

`

This doesn't: `

`

changelee82 commented 4 years ago

and this doesn't: `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24" >

<rect x="12" y="12" fill="#FFFFFF" width="8" height="8"/>
<rect x="4" y="4" fill="#FFFFFF" width="8" height="8"/>

`