Reply to can I use svg image file in xcode? If you add the SVG to your assets folder, you can then use the SVG with UIImage(named:), but I haven't found a way to use SVG data, for example downloading SVG as Data and then using UIImage(data:) doesn't work for some reason. Programming Languages Swift Nov ’20