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

Recommendations

Developer:

Consider using converter for SwiftUI assets.

QA engineer:

Business as usual.

PM/DM:

Business as usual.

Leave a comment