Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for clipPath #37

Open
alessiolapenna opened this issue Jan 19, 2024 · 2 comments
Open

Missing support for clipPath #37

alessiolapenna opened this issue Jan 19, 2024 · 2 comments

Comments

@alessiolapenna
Copy link

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

@swhitty
Copy link
Owner

swhitty commented May 24, 2024

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 🤯.

@ERussel
Copy link

ERussel commented Oct 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants