yelp / salsa Goto Github PK
View Code? Open in Web Editor NEWA tool for exporting iOS components into Sketch ๐ฑ๐
License: MIT License
A tool for exporting iOS components into Sketch ๐ฑ๐
License: MIT License
Following the directions here: README Link
I get this output upon running generate_sketch
:
Fatal error: Could not find font: SFProText-Semibold: file /Users/~/Developer/salsa/SalsaCompiler/SalsaCompiler/SketchJson/Text+SketchJson.swift, line 76
./generate_sketch: line 19: 10945 Illegal instruction: 4 ../SalsaCompiler/build/Release/salsa -f /tmp/SalsaExample/generated.salsa -e ExampleSketch
Failed to build sketch file
I'm wondering if this is because of version mismatch? I had to update generate_sketch
's first xcodebuild
command. I changed the simulator to iOS 11.3, since Xcode 9.3 does not support the 10.3.1 simulator.
Versions:
xcodebuild
: 9.3
Cocoapods: 1.5.0
Swift 4 introduced Codable / Decodable which probably means we don't need to make our own protocol for this anymore
First of all, thanks for the hard work!
Would like to know your opinion on adding new set of APIs to Salsa for capturing UIView instance conveniently. Seems like the current code forces us to instantiate new UIView instances and return them via static function:
static func artboardElements() -> [[ArtboardElement]]
One usecase of this is to allow it to snap views during the UI automation. I experimented with it to generate Sketch file as visual documentation of an app (removing filtering/purging to keep exact copy of view hierarchies).
The additional APIs could be something like what I did there:
https://github.com/aunnnn/salsa-AutoSketch/blob/master/Salsa/Salsa%2BAutoSketch.swift
Its giving pod installation error like below,
Analyzing dependencies
[!] Unable to find a specification for Salsa
[!] Automatically assigning platform ios
with version 11.3
on target Salsa
because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.