# mchoe/SwiftSVG

A simple, performant, and lightweight SVG parser

Repository: https://github.com/mchoe/SwiftSVG
Canonical: https://ross.abutalabs.com/products/swiftsvg
Language: Swift
License: NOASSERTION
License Family: other
Topics: svg, swift, ios, macos, tvos
Last push: 2022-07-04T14:40:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4197, "days_push": 1521, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2000, forks 229 (observed 2026-08-28T04:06:04.299680+00:00)

## What it is
SwiftSVG is a lightweight, performant SVG parser library for Swift that converts SVG files into native iOS/macOS drawing primitives like UIBezierPath, CAShapeLayer, and UIView. It is designed for flat, solid-color SVG elements such as app icons, not full SVG feature coverage.

## Use cases
- render svg icons in an ios app
- theme svg icons at runtime for light and dark mode
- convert svg paths to uibezierpath
- display many svg files quickly on ios
- parse svg shapes into cashapelayer
- use svg in interface builder with ibdesignable views

## When to choose
- you need fast rendering of flat, solid-color svg icons on apple platforms
- you want to recolor or theme svg icons at runtime
- you need a lightweight svg parser without gradients, text, or animation support
- you want multiple output interfaces like UIView, CALayer, or UIBezierPath

## When to avoid
- your svgs use gradients, text, or animations
- you need a full-featured, spec-compliant svg renderer
- you are not targeting apple/swift platforms
- you need cross-platform svg rendering outside the Apple ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, image-processing, ui-components
- domain: graphics, mobile-development, web-development
- platform: cross-platform
- tags: svg, swift, uikit, bezier-path, cashapelayer, icons, vector-graphics, ios, macos

## Member repositories
- mchoe/SwiftSVG (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.299680+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-30T03:02:08.060802+00:00, confidence not recorded.
  - readme: https://github.com/mchoe/SwiftSVG (fetched 2026-08-28T04:06:04.299680+00:00, sha f7c9ca3e6026)
- Data as of 2026-08-30T08:39:29.467469+00:00.
