Reputation: 153
Good Day. I am making an extension for mac. The RestAPI i am using is providing image url that has .svg format images. I tried loading .svg images but nothing appears. I know mac supports png images and there is a tedious way to render .svg image on mac. Is there any way i can convert .svg to .png upon download using swift?
Upvotes: 3
Views: 5376
Reputation: 131398
As far as I know there's no OSX or iOS native support for SVG files. A quick search of GitHub using the search string "Mac SVG" found several libraries that will display SVG files. I suggest you use one of those.
Upvotes: 1