Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display vector images in iOS (SVG or FXG) [closed]

I would like to display images in Adobe FXG file format (exported from flash) or SVG format in an iOS application. Is there an Objective-C tool or library that can render vector graphics ?

(I don't want to convert my images to bitmap format ! I would like to keep vector format)

like image 376
Arnaud Avatar asked Jun 06 '12 04:06

Arnaud


2 Answers

maybe SVGKit could help:

SVGKit is a cross-platform 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 OS X and iOS SDK's.

Note: Nowadays i would recommend to use PaintCode instead!

like image 173
CarlJ Avatar answered Sep 27 '22 17:09

CarlJ


An old question for sure, but hopefully this new answer may help things out. I've spent the weekend looking for a solution, but I wanted to avoid using parsers. I did find a program called Qwarkee which converts svg code into Quartz2D calls. Unfortunately, it's a paid app. (FYI, I have no relation with the project).

If you are looking to produce your artwork specifically for iOS, there are programs like Opacity and PaintCode that will produce the Quartz as you draw your image.

Hope that helps!

like image 20
Brian Douglas Moakley Avatar answered Sep 27 '22 15:09

Brian Douglas Moakley