A simple SVG parser/document wrapper for iOS
Supported shapes/features:
Shape Primitives:
- Circle
- Ellipse
- Rectangle
- Line
- Polyline
- Bezier Path
Shape Appearance:
- Fill Color (in hex "#xxxxxx" format)
- Stroke Color (in hex "#xxxxxx" format)
- Stroke Weight
- Line Dashes
- Line Join/Cap (Butt/Round/Miter)
SVG Document Properties:
- viewBox
To use:
- JMSVGDocument *svgDocument = [JMSVGDocument documentNamed:@"awesome_tiger"] to get a new JMSVGDocument.
- [svgDocument drawInCurrentContext] or [svgDocument image] to use.
- There is no step 3.
Grab the example to see how it works. Cheers!