Open Source: Library To Render SVG Graphics As Core Animation Layers

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.

Keynotopia is the largest collection of user interface design templates so you can build professional active iPhone and iPad app prototypes quickly using Keynote. No programming knowledge required.
Read more...
DeliciousTwitterFacebookLinkedInEmail

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can send a Tweet to @maniacdev on Twitter or submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

One Response to Open Source: Library To Render SVG Graphics As Core Animation Layers

  1. Great library . Hope it works and works better than this approach http://jeffmenter.wordpress.com/2011/04/17/method-for-interpreting-illustrator-art-assets-as-cocoa-cgpathref/

    Thanks for introducing.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>