exyte / Macaw

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

It is possible to convert UIBezierPath to Locus (form for shape)? #688

Closed ernichechelski closed 4 years ago

ernichechelski commented 4 years ago

Sorry, but I didn't manage to find a way how to create very custom shapes using UIBezierPath (MBezierPath). :(

f3dm76 commented 4 years ago

@ernichechelski Unfortunately that's true - there isn't one. There is a Path Locus which looks like what you need, but it can't be created directly from UIBezierPath. We've added it to our plans, but it's quite a bit of work, and will take a while. So in the meantime you might consider creating a PR adding this functionality.

f3dm76 commented 4 years ago

Hey there @ernichechelski , we added CGPath.toMacaw(). You are most welcome to check out Macaw master branch. Have a great day!

ernichechelski commented 4 years ago

This message made my day! Thank you very much! I must say that this library makes implementing charts very productive and satisfying. Great work! 😄