Member-only story
How to Effortlessly Update SVG Icons in SwiftUI
SVG To SwiftUI Code
So, a while ago, I came across an article on Medium about a website that converts SVG to SwiftUI.
That sparked an idea — what if I switch the icons in my InfiXOX app to use SwiftUI Shapes instead of static image assets?
Using Shapes in SwiftUI means the app no longer needs to load image files (like PNG or PDF) from the asset catalog, which makes it lighter and more memory-efficient.
Not only does it save storage, but it also boosts performance, especially on lower-end devices.
Web app
Here’s the article that inspired me to make the change feel free to check it out:
1. You can convert SVG to SwiftUI code in 3 steps by Andrii
2. SVG To SwiftUI Code by Javid Shaikh
There’s actually one more article I found very useful, but I forgot to bookmark it 😅. If I stumble upon it again, I’ll update the list.
Website: https://svg-to-swiftui.quassum.com/