Is it possible to create a CGPath from a given file?
SVG would be preferred, but anything will work.
Is it possible to create a CGPath from a given file?
SVG would be preferred, but anything will work.
Yes. It is possible. I haven't done this, but because SVG uses paths itself, it seems that mapping an SVG path to a CGPath would be something possible/manageable. The question at that point becomes how motivated are you? I didn't see any Objective-C libraries that already do this in a cursory google search, but it may be out there. I did see a Java implementation, that you could probably port.
Considering the lack of obvious solutions on the web, I would guess this isn't a very common need for app devs. There's probably a better/easier way to solve the problem at hand. If all you want is to display an SVG image, you could just embed a webview and let WebKit render it for you.