Search code examples
iossvgvectorviewsignature

Signature view iOS to svg format


I'm having trouble with signature view on iOS

I have created the signature view and convert it to bitmap but I have to convert it to SVG too, and I have no idea to do that I've searched many example, but what I got is just show the svg format to the iOS view, not to convert the view to SVG format is there any library or example that I can use to do that?


Solution

  • For converting the image into svg for that you have bezier path,not need to save into UIImage.you need to convert it directly to an SVG path string, and then insert that SVG path into an SVG document.

    Here is the answer for convert CGPath to SVG

    May this helps lot.