Skip to content

sue71/SimpleSVGParser

Repository files navigation

SimpleSVGParser

The simple SVG parser for iOS written in swift.

Features

  • convert SVG to CGPath
  • written in swift
  • use d attribute
  • supporting multiple path

Use

let layer = CAShapeLayer()
layer.path = SVGParser.buildPathFromSVG("sample")

self.view.layer.addSublayer(layer)

Restriction

The SVG file should have "d" attributes.

Sample data

http://www.flaticon.com

About

The simple svg parser written in swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published