# bring-shrubbery/SVG-to-SwiftUI

SVG to SwiftUI Compiler

Repository: https://github.com/bring-shrubbery/SVG-to-SwiftUI
Canonical: https://ross.abutalabs.com/products/svg-to-swiftui
Homepage: https://svg-to-swiftui.quassum.com
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: svg, swift, transpiler, swiftui-shape, swiftui, compiler
Last push: 2026-08-05T17:18:32+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 89, longevity 100
- inputs: {"age_days": 2339, "days_push": 28, "days_rel": 74, "gap_med": 15.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1119, forks 53 (observed 2026-08-28T04:03:39.425596+00:00)

## What it is
A compiler that converts SVG artwork into native, scalable SwiftUI code, producing SwiftUI Shapes or layered Views backed by native paths and Canvas rendering. It supports the static appearance of SVG 2 and Filter Effects Level 1, plus declarative SVG animation (SMIL, CSS keyframes), and is available as a web app, Figma plugin, and npm package.

## Use cases
- convert svg icons to swiftui shape code
- render svg vector graphics natively in an ios app
- turn figma svg exports into swift code
- compile animated svg spinners into native swiftui animations
- display resolution-independent vector paths in xcode without rasterizing
- convert complex multi-path svg artwork like the ghostscript tiger to swiftui

## When to choose
- you need SVG assets rendered natively in SwiftUI apps with full scalability
- you want tintable SwiftUI Shapes from simple icons
- you need deterministic, testable conversion of production-grade SVGs including filters and animation
- you prefer generated Swift code over bundling SVG files or using a web view

## When to avoid
- your SVGs rely on browser scripting, live DOM mutation, or media playback
- you target platforms outside Apple's SwiftUI ecosystem
- you need runtime SVG parsing rather than compile-time conversion

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, graphics, parser, developer-tools
- domain: developer-tools, graphics, mobile-development, web-development
- platform: cross-platform
- tags: svg, swiftui, transpiler, code-generation, figma-plugin, vector-graphics, macos, ios, web, nodejs

## Member repositories
- bring-shrubbery/SVG-to-SwiftUI (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.425596+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:41:10.104984+00:00, confidence not recorded.
  - readme: https://github.com/bring-shrubbery/SVG-to-SwiftUI (fetched 2026-08-28T04:03:39.425596+00:00, sha e6934ed4ab1b)
  - homepage: https://svg-to-swiftui.quassum.com (fetched 2026-08-29T12:45:05.608949+00:00, sha a78b1cad323c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
