design-ops / sketch-to-swiftUI

23 stars 5 forks source link

Sketch to SwiftUI

Create a StylableSwiftUI stylist implementation from a Sketch file. Sketch -> SwiftUI

Installation

Clone

Setup

Install dependencies first

$ brew install fonttools

now install npm packages

$ npm install

If you encounter a problem installing node-canvas, rebuild it from source:

brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman

and then

npm install --build-from-source

Features

Usage (Optional)

npm run convert ${path-to-sketch-file.sketch}

or if you want your assets as SVG:

npm run convert -- ${path-to-sketch-file.sketch} --svg

Documentation (Optional)


Contributing

To get started...

Step 1

Step 2

Step 3


License

See the LICENSE file.