Marina
Understanding SwiftUI by reimplementing it to render to HTML ⛵ - you shouldn't use this, use https://github.com/swiftwebui/SwiftWebUI instead
Install / Use
/learn @zhuowei/MarinaREADME
Understanding SwiftUI by reimplementing it to render to HTML.
Want to keep up with Swift news on your Amazon Echo or Google Home smart speaker? Follow me on Voco.
What it does
Almost nothing!
It can barely render the homepage of Apple's Landmarks sample from the SwiftUI tutorial to HTML.
<img src="https://pbs.twimg.com/media/D8hDbB_VsAA00Vf.jpg:large" width="320">I just wanted to learn the new function builder feature that powers SwiftUI's DSL.
See also:
- Swift Evolution pull request for function builders
- Swift pull request with function builder samples
- Swift Evolution pull request for property delegates
- SwiftRocks's article on SwiftUI's tricks
Building
Install Xcode 11 beta 1, then
./build.sh
Running
git clone https://github.com/zhuowei/marina-sample-landmarks.git LandmarkTutorial3Complete
./landmarkDemo.sh
./run.sh >output.html
cat html_template/head.html output.html >output_full.html
License
Apache 2.0 with the Runtime Library Exception.
Files in systemicon are from Ionicons and are under the Ionic project's MIT license.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate 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
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
