GenerallyHelpfulSoftware / SVGgh

A framework for using SVG artwork in iOS Apps. Includes a UIView and a button class, printing and PDF export.
MIT License
142 stars 37 forks source link

Do you know that SVGgh works on OS X too? #7

Open djphoenix opened 9 years ago

djphoenix commented 9 years ago

With some changes (UIColor->NSColor etc.) SVGgh runs perfect in OS X app. Will you write some #defines to make it platform-independent? Or could I do it (via pull request)?

grhowes commented 9 years ago

I didn't know that but I'm unsurprised it can be easily done. As you know, it's all Core Graphics and CALayers once you get passed a thin UIView wrapper.

If you'd like to put together a pull request, I'd be happy to look it for inclusion.

hamin commented 9 years ago

:+1:

hamin commented 9 years ago

@djphoenix @grhowes here's a reference of another project that turns svgpaths to uibezierpaths/nsbezierpaths https://github.com/ap4y/UIBezierPath-SVG/blob/master/SKUBezierPath%2BSVG.h