Understanding SwiftUI by reimplementing it to render to HTML - you shouldn't use this, use https://github.com/swiftwebui/SwiftWebUI instead
Go to file
2019-06-07 22:54:07 -07:00
html_template Start adding CSS styles 2019-06-07 22:38:58 -07:00
mainlandmark Start implementing html output for the new views 2019-06-07 21:17:58 -07:00
systemicons add star icon: unmodified ios-star.svg from Ionicons 2019-06-07 22:39:50 -07:00
.gitignore Initial commit 2019-06-05 02:23:56 -07:00
build.sh Run after building 2019-06-07 02:13:24 -07:00
landmarkDemo.sh Continue stubbing out views 2019-06-07 15:32:20 -07:00
main.swift Improve the demo text 2019-06-07 13:22:24 -07:00
marina_combine.swift Implement enough stubs to get a bit of Landmarks building 2019-06-07 20:52:31 -07:00
marina_html.swift Implement more views 2019-06-07 21:26:26 -07:00
marina.swift Start adding CSS styles 2019-06-07 22:38:58 -07:00
README.md Update README 2019-06-07 22:54:07 -07:00
run.sh Start working on iterating through tree, build and run with iOS Simulator 2019-06-07 00:34:07 -07:00

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.

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.