Custom UIImageview which supports drawing and creation of SVG image files. Ideal for creating and storing signatures in SVG format.
Download and Drop SVGDrawingView.h and SVGDrawingView.m in your project. SVGDrawingView can be directly added as a view to storyboard or added as subview.
// Set Color:
drawingView.strokeColor = [UIColor darkGrayColor];
// Set Width:
drawingView.strokeWidth = 10.0;NSString *path = [NSHomeDirectory() stringByAppendingPathComponent: @"Documents/Sign.svg"];
NSError *e;
[drawingView saveSVGFileToPath:path error:&e];[drawingView getSVGString];[drawingView clearView];For more details check the xcode project.