Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open .svg file in iOS?

Tags:

ios

I have to create the view in which I have to open .svg extension file in iOS project. I have some doubts for this .svg extension

  1. Can we open .svf file directly in iOS like .png or any other images?
  2. Or we have to use any different thing to open this file.
like image 650
Nishi Avatar asked Feb 19 '23 09:02

Nishi


1 Answers

You can't load .svg as an image, but you can load a UIWebView with an SVG as content since the iOS browser can render SVG.

See also these questions: How to render SVG images in iphone without uiwebview?, How can I load vector image directly with iPhone SDK?, how to render all kind of svg files in iphone?

like image 118
nneonneo Avatar answered Mar 03 '23 12:03

nneonneo