Github CGPaths NSStrings:
+(nullable NSString*) svgPathFromCGPath:(CGPathRef)aPath;
+(nullable CGPathRef) newCGPathFromSVGPath:(NSString*)anSVGPath whileApplyingTransform:(CGAffineTransform)aTransform;
You can use these lines with NSCoders to store things. Be warned that at any time when you convert between paths and strings, you may lose significant numbers due to conversion.
I wrote these routines, and they are under the MIT license.
source
share