This repository shows a few examples of how to use Swift on the Web.
Demonstrates passing data as a String between Swift and JavaScript.
Builds off of the example from the SwiftWasm book that shows passing Integer types.
See here for details.
Demonstrates a basic web app uses SwiftUI via Tokamak for the user interface and SwiftWasm for the underlying web app code.
The web app runs as a self-contained wasm that provides the entire user interface only from the wasm executable, via DOM manipulation.
Refer to the Tokamak repo for details.
See here for details.