2

I have a simple view for finger painting / drawing. I store the drawings as UIBezierPaths in a NSMutableArray. Now I want to transfer the drawings to a web-service for presenting them in a browser. Therefore I need to encode my UIBezierPaths in a SVG-file - because this the format of the web-service.

What I found right now is the SVGKit, which only DECODES SVG. Do anybody know sample code, snippets or a framework for encoding SVG?

Thank you.

Dominic Sander
  • 2,714
  • 1
  • 18
  • 29
  • I had a similar problem but for NSBezierPath, see https://stackoverflow.com/questions/52334815/turn-a-bezierpath-into-an-svg-file – Bob Ueland Sep 19 '18 at 17:40

1 Answers1

2

I tested yet. but using following steps: Would not it be possible?

1.UIBezierPath to CGPathRef. UIBezierPath to CGPathRef

2.Using a MROGeometry CGPathRef To SVG.

Community
  • 1
  • 1
bitmapdata.com
  • 9,572
  • 5
  • 35
  • 43