Sketch2Code
No description available
Install / Use
/learn @dianqk/Sketch2CodeREADME
Sketch2Code
先解决布局(位置和层级),再说样式和组件。
如何运行
首先编译运行 Sketch2Code,要来处理 Sketch 文件,生成代码。
参数建议: 使用 Xcode: Arguments Passed On Launch 有两个:
$SRCROOT/Example/Example/UI.swift
$SRCROOT/OtherResources/Example.sketch
使用 swift build: 编译:
swift build -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.13"
运行:
.build/debug/Sketch2Code ./OtherResources/Example.sketch ./Example/Example/UI.swift
最后运行 Example 工程即可。
代码写的比较随意,还有 99% 的功能没写,欢迎 PR。
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

