Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time
October 29, 2023 20:55
October 29, 2023 20:35
October 29, 2023 20:41
August 4, 2022 18:43
October 29, 2023 22:27
August 4, 2022 18:37
October 29, 2023 22:26
October 21, 2022 21:06
October 18, 2023 13:26
October 29, 2023 20:35
October 17, 2023 22:38
August 4, 2022 18:37
August 4, 2022 18:37

SVG to SwiftUI Converter

Tool to convert SVG to SwiftUI's Shape structure. This approach is much more memory efficient than introducing a SVG library for rendering.

"Buy Me A Coffee"

Disclaimer (Before you use this tool)

This tool is oriented towards specific implementations where you might otherwise need to convert the icon into SwiftUI Shape manually, for example when you need a custom animatable icon, need to use SFSymbol in your macOS app, etc. For general purpose icons it might be better to use this guide to create an SF Symbol instead.

Quick Links


Step 1

⭐️ Star this repository! ⭐️


The tool is available online, just follow this link.

Running locally

git clone
cd SVG-to-SwiftUI
yarn dev

Example usage

To demonstrate this tool I created a thicc plus sign with rounded corners (created it in Sketch, so shapes from Sketch should work fine with this tool). It's saved as content/demo-plus.svg file in this repository. You can see below how it looks like in the browser, and how it looks like after converting into SwiftUI Shape.

In the browser

SVG file wiewed in the browser

In SwiftUI View, exported as a Shape

SVG file wiewed in the browser


  • Feel free to open an issue for the SVG code that did not work - provide the SVG code of course!
  • Pull requests are very welcome! Introducing support for more SVG element types would be the best contribution at this point.


Antoni Silvestrovic