• Stars
    star
    146
  • Rank 251,840 (Top 5 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Parse SVG path strings into UIBezierPaths in Swift

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")