Sometimes it is might be easier to use SwiftUI’s Shape rather than operating SVG files. So, there is a tool to convert SVG to SwiftUI’s Shape structure. This approach is much more memory efficient than introducing a SVG library for rendering.

Example of resulting Shape object.

GitHub: SVG-to-SwiftUI

Reference: SVG to SwiftUI Converter



Consider using converter for SwiftUI assets.

QA engineer:

Business as usual.


Business as usual.

Leave a comment