Display an SVG file in macOS and/or iOS

Hi. I’m developing a multiplatform app for both iOS and macOS and was wondering if there’s any way to display an SVG file in the swiftUI view. I’ve seen ways online once you put the image in the assets file but this will be dynamic coming from outside the program.

I just want to display and maybe rotate it but nothing more complicated than that.

thanks

I don't think there is a public API for SVG display, except using a web view.

There is, however, a private API called CoreSVG - I know this because I have seen it mentioned in error messages! (Hmm, I guess I'm not certain if it is in iOS or macOS or both.) So it might be worth filing a bug asking for CoreSVG to become a public API.

Display an SVG file in macOS and/or iOS
 
 
Q