How to display .svg image using swift

前端 未结 13 830
你的背包
你的背包 2020-11-30 00:37

I have a .svg image file I want to display in my project.

I tried using UIImageView, which works for the .png & .jpg image formats, but not for the .svg extensi

相关标签:
13条回答
  • 2020-11-30 01:10

    You can add New Symbol Image Set in .xcassets, then you can add SVG file in it

    and use it same like image.

    Note: This doesn't work on all SVG. You can have a look at the apple documentation

    0 讨论(0)
提交回复
热议问题