/SwiftDraw

A Swift library for parsing and drawing SVG images to CoreGraphics contexts.

Primary LanguageSwiftzlib LicenseZlib

Travis CodeCov Swift 5.0 License Twitter

SwiftDraw

A Swift library for parsing and drawing SVG images to CoreGraphics contexts.

Usage

iOS

import SwiftDraw
let image = UIImage(svgNamed: "sample.svg")

macOS

import SwiftDraw
let image = NSImage(svgNamed: "sample.svg")

Command line tool

Download the latest command line tool here.

$ swiftdraw sample.svg --format pdf --size 48x48