How to display .svg image in XCode 6.3.1

Good day. I am making an extension for mac. The RestAPI I am using provides a graphical url with .svg format images. I have tried uploading .svg images but nothing appears. I know mac supports png images and there is a tedious way to render a .svg image on mac. Is there a way I can convert the .svg to .png on upload using swift?

+3


source to share


1 answer


As far as I know, there is no native OSX or iOS support for SVG files. A quick GitHub search using the "Mac SVG" search bar found several libraries that will display SVG files. I suggest you use one of them.



+1


source







All Articles