Get Updates By E-mail 

Article Written By:
Johann Dowa

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/SVGKit/SVGKit

If you’ve wanted to render vector graphics in your apps, this is a working solution.


  •  
  •  
  •  
  •  
  •  

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 submit the url here.

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

Comments