How to use
- Download latest Swift Wasm Development snapshot from this page. Match it with the one that you find in
.vscode/setings/json
- Open it in VSCode with Swift extension installed.
- Open
Sources/LightWebApp.swift
and hitCmd + S
in order to make it build - Make sure it builds successfully
- Make sure
python3
is installed (which python3
should give you a path to it) - Go to
Run and Debug
tab (Shift + Cmd + D) and runRun hosting (LightWebApp)
- Open
http://127.0.0.1:8000/
in the browser and check that it showsEmbedded Swift App
in the center of the page and printsHello world
in the console