Latest 0.3.1
Homepage https://github.com/swhitty/SwiftDraw
License zlib
Platforms ios 10.0, osx 10.11

Travis
CodeCov
License
Twitter

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

% swiftdraw ./sample.svg --format pdf

Latest podspec

{
    "name": "SwiftDraw",
    "version": "0.3.1",
    "summary": "A Swift library that adds support for SVG files to UIImage and NSImage.",
    "homepage": "https://github.com/swhitty/SwiftDraw",
    "authors": "Simon Whitty",
    "license": {
        "type": "zlib",
        "file": "LICENSE.txt"
    },
    "source": {
        "git": "https://github.com/swhitty/SwiftDraw.git",
        "tag": "0.3.1"
    },
    "platforms": {
        "ios": "10.0",
        "osx": "10.11"
    },
    "source_files": "SwiftDraw/*.swift",
    "ios": {
        "exclude_files": "SwiftDraw/NSImage+Image.swift",
        "frameworks": [
            "UIKit",
            "Foundation"
        ]
    },
    "osx": {
        "exclude_files": "SwiftDraw/UIImage+Image.swift",
        "frameworks": [
            "AppKit",
            "Foundation"
        ]
    },
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This