SwiftSVG

0.11.0

A Swift SVG parsing library
richardpiazza/SwiftSVG

What's New

SwiftSVG 0.11.0

2023-07-22T21:38:14Z

What's Changed

Full Changelog: 0.10.0...0.11.0

SwiftSVG

A Swift SVG parsing library

Usage

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

Features

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)

Contributions

Checkout

License

This project is released under an MIT License.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Sun Apr 21 2024 07:21:52 GMT-0900 (Hawaii-Aleutian Daylight Time)