26

GitHub - zhuowei/marina: Understanding SwiftUI by reimplementing it to render to...

 4 years ago
source link: https://github.com/zhuowei/marina
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

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.

68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4438684462425f56734141303056662e6a70673a6c61726765

I just wanted to learn the new function builder feature that powers SwiftUI's DSL.

See also:

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK