Skip to content

Instantly share code, notes, and snippets.

@muizidn
Last active August 21, 2019 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muizidn/48bc85be15f604f751d40317f6c2e921 to your computer and use it in GitHub Desktop.
Save muizidn/48bc85be15f604f751d40317f6c2e921 to your computer and use it in GitHub Desktop.

Convert SVG file to UIBezierPath

Currently we do these steps manually but we are moving to automate it.

Browser

  1. Open Svgson
  2. Open Regexr
  3. Open Swiftsvg

Svgson

Open *.svg file to convert it to json

Regexr

  1. Regexr regex = .*"d": "(.*)",?d
  2. Copy paste from @Svgson
  3. Select List = $1

Swiftsvg

Copy paste result from @Regexr to here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment