Vector Path to SwiftUI Shape

SVG to SwiftUI Converter

Convert vector SVG paths (<path d="...">) directly into declarative SwiftUI Path drawing operations wrapped in reusable Shape structs.

Presets:
SVG Vector SourceviewBox: 24×24
Canvas Preview
Export PNG:
Native SwiftUI Shape Code
// Pre-rendering...

Why use native SwiftUI Shapes instead of raster images?

Infinite Resolution

SwiftUI Shapes are mathematically calculated bezier curves. They never pixelate, regardless of whether they are rendered on a 40mm Apple Watch or a 6K Pro Display XDR.

Dynamic Animatable Data

Native Shapes conform to Animatable, allowing you to morph vector paths smoothly with SwiftUI spring animations.

Dynamic Styling & Fills

You can apply linear gradients, angular gradients, shadows, strokes, and materials directly in code without bundling separate graphic assets for dark and light modes.

Thorous icon

Build full iPhone apps without touching Xcode

Enjoying this free SVG to SwiftUI Converter? Thorous turns your natural language prompts into compiled native SwiftUI apps, with real-time iOS simulator streaming and visual on-screen editing.

Native Mac app · macOS 14 Sonoma or later · Apple silicon & Intel