Skip to content

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages