If you have been wanting to include vector graphics directly within your Cocoa based iOS apps I’ve found an excellent solution for that.
Using an Open Source project known as SVGKit from Matt Rajca, you can load SVG files directly into your apps and not only that. Each individual shape within your SVG image becomes a CAShapeLayer so that you can scale and animate your graphics.
Examples for both iOS and Mac are included. One noted limitation is that gradients do not work as they are unsupported by the CAShapeLayer class.
You can find the instructions, examples and download the class on the github page located here:
https://github.com/mattrajca/SVGKit
If you’ve wanted to render vector graphics in your apps, this is a working solution.
©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.





