Swiftpack.co - richardpiazza/SwiftSVG as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by richardpiazza.
richardpiazza/SwiftSVG 0.10.0
A Swift SVG parsing library
⭐️ 2
🕓 3 weeks ago
.package(url: "https://github.com/richardpiazza/SwiftSVG.git", from: "0.10.0")


A Swift SVG parsing library


SwiftSVG is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your Package.swift manifest:

let package = Package(
    dependencies: [
        .package(url: "https://github.com/richardpiazza/SwiftSVG.git", from: "0.10.0")

Then import the SwiftSVG packages wherever you'd like to use it:

import SwiftSVG


SVG (Scalable Vector Graphics) is an XML-based markup language for describing two-dimensional vector graphics. The text-based files contain a series of shapes and paths forming images. SwiftSVG parses & builds SVG files so the data can be interpreted and used. (For instance: VectorPlus)

An SVG is most commonly initialized using an existing file (URL) or Data.

let url: URL
let svg1 = try SVG.make(from: url)

let data: Data
let svg2 = try SVG.make(with: data)




This project is released under an MIT License.


Stars: 2
Last commit: 18 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

SwiftSVG 0.10.0
3 weeks ago

This release address an issue with parsing smooth quadratic curve as well as radius issues while processing circles.

#3 Thanks @rpoelstra

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics