timrwood / SVGPath

Parse SVG path strings into UIBezierPaths in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notice: No maintanence intended

This project is no longer maintained as I no longer actively develop in Swift. If anyone is interested in taking over ownership, please open an issue and I can work on transferring ownership.

SVGPath

MIT License Build Status SVGPath on CocoaPods

A Swift Library for parsing SVG path strings into UIBezierPaths

Installation

CocoaPods

pod 'SVGPath'

Example

let path = UIBezierPath(svgPath: "M85 32C115 68 239 170 281 192 311 126 274 43 244 0c97 58 146 167 121 254 28 28 40 89 29 108 -25-45-67-39-93-24C176 409 24 296 0 233c68 56 170 65 226 27C165 217 56 89 36 54c42 38 116 96 161 122C159 137 108 72 85 32z")

About

Parse SVG path strings into UIBezierPaths in Swift

License:MIT License


Languages

Language:Swift 97.5%Language:Ruby 1.3%Language:Objective-C 1.1%