swhitty / SwiftDraw

Swift library and command line tool to convert SVGs into SFSymbol, PNG, PDF and Swift source code.
zlib License
326 stars 41 forks source link

Preserve all SFSymbol classes #30

Closed swhitty closed 8 months ago

swhitty commented 8 months ago

Adds support for the named color transparent.

Refines the SFSymbol optimisation that removes all transparent layer — now any layer that is annoyed with supported classnames are now always included within the output symbol, regardless of the opacity.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (6b176b5) 85.24% compared to head (1f981b3) 85.33%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #30 +/- ## ========================================== + Coverage 85.24% 85.33% +0.09% ========================================== Files 77 77 Lines 7019 7024 +5 ========================================== + Hits 5983 5994 +11 + Misses 1036 1030 -6 ``` | [Files](https://app.codecov.io/gh/swhitty/SwiftDraw/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Whitty) | Coverage Δ | | |---|---|---| | [SwiftDraw/Parser.XML.Color.swift](https://app.codecov.io/gh/swhitty/SwiftDraw/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Whitty#diff-U3dpZnREcmF3L1BhcnNlci5YTUwuQ29sb3Iuc3dpZnQ=) | `97.69% <100.00%> (+0.01%)` | :arrow_up: | | [SwiftDraw/Renderer.SFSymbol.swift](https://app.codecov.io/gh/swhitty/SwiftDraw/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Whitty#diff-U3dpZnREcmF3L1JlbmRlcmVyLlNGU3ltYm9sLnN3aWZ0) | `85.21% <100.00%> (+1.66%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.