exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6k stars 552 forks source link

[Question] Support svgz files #777

Open baillyjamy opened 2 years ago

baillyjamy commented 2 years ago

Hello, Is there a reason why .svgz files are not supported? I may have misunderstood the format but if I don't say anything stupid it's just a compressed svg file like a .gz? For one of my projects I need to open svgz files that come from an online source. I made a simple SVGParser extension that calls SVGParser.parse(text: String) after unzipping the file with GzipSwift. It works for my project There might be a lot of details to be aware of and maybe a simple unzip is not necessarily enough?