Over a million developers have joined DZone.

SVGKit for Mac OS X and iOS

DZone's Guide to

SVGKit for Mac OS X and iOS

· Mobile Zone ·
Free Resource

This looks like an interesting option for designing and implementing simple animations easily:

SVGKit at GitHub

SVGKit is a Cocoa framework for rendering SVG files as Core Animation layers. All shapes are represented by instances of the CAShapeLayer class, and are, by design, animatable. SVGKit is compatible with the latest Mac OS X and iOS SDK’s. To use SVGKit in your iOS application, simply drag the Core and iOS folders into your Xcode project. See SVGPad for a working sample…

That’s pretty cool, yep. And even more interestingly, it does it quite elegantly indeed:

First, initialize an instance of SVGDocument, the model object which encompasses the entire SVG element tree. This can be accomplished using the initWithContentsOfFile: initializer. To load a SVG file which resides in your application bundle, use the documentNamed: class method and pass in a file name (without the extension). The SVGDocument class encapsulates certain document metadata, including width, height, version, title, and description…

That looks like it might be a nice upgrade to Illustrator Level Design, for instance, or to LevelSVG‘s parsing for cocos2d, besides just making it simple to pretty much drop animations straight into your UIKit interface!



Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}