swhitty/SwiftDraw

Missing support for clipPath

alessiolapenna opened this issue · 2 comments

From what I could see and test, there is no support for clipPath.
Is it planned to be added?

Hi @alessiolapenna, to clarify — SwiftDraw does support clip paths when rasterizing an SVG, but not when outputting an SFSymbol.

This is because SFSymbols themselves do not support clip paths, so one must manually divide and removes paths outside the clip then create the symbol. I am interested in supporting this within SwiftDraw in the future, but it does require some complex boolean operations of bezier paths 🤯.

Hey everyone! @swhitty Also found not working case related to the clipPath, I think. Here is the image link that is decoding improperly by SwiftDraw but can be decoded in right way using SVGKit.