Initialize UIImage with SVG file

I know how to initialize a UIImage with an SVG from the assets catalog, is there not a way to do it with an SVG downloaded from an API?

UIImage(data: ) fails. So does UIImage(contentsOfFile:)

Why only do this halfway?

I have the same question/comment.

Initialize UIImage with SVG file
 
 
Q