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

Could export UIBezierPath to SVG path? #12

Open
arden opened this issue Jun 26, 2016 · 1 comment
Open

Could export UIBezierPath to SVG path? #12

arden opened this issue Jun 26, 2016 · 1 comment

Comments

@arden
Copy link

arden commented Jun 26, 2016

Could export UIBezierPath to SVG path?

@laszlokorte
Copy link
Owner

As this is currently only a macOS application I assume you are talking about NSBezierPath. I think CoreGraphics does not provide a native api for doing so but there are libraries doing that: https://github.com/mro/MROGeometry/

Still, in ReformGraphics we have a custom struct for representing shapes: https://github.com/laszlokorte/reform-swift/blob/master/ReformGraphics/ReformGraphics/Shape.swift#L11-L27

This would be straightforward to serialize into SVG.

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

No branches or pull requests

2 participants