Get Started With Swift for WebAssembly on macOS With SwiftWasm
Installing the experimental Swift snapshot with WebAssembly support on macOS, then getting the first Swift code running inside a Wasm runtime.
Installing the experimental Swift snapshot with WebAssembly support on macOS, then getting the first Swift code running inside a Wasm runtime.
Building a web UI in SwiftUI-inspired syntax with Tokamak, compiled to WebAssembly by SwiftWasm — the toolchain, the project setup and the first app.
Store init parameters and dependencies as properties at the entity's own access level. It costs nothing, and it buys transparency, scale and testability.
Part two of the Action Delegate pattern: dropping the untyped Any sender and carrying it in the DelegateAction payload instead, so no casting is needed.
An unconstrained Swift protocol makes the compiler treat every conforming value as a value type. Constraining it to classes is what changes that.
Delegation is simple and robust but costs a new protocol per context. The Action Delegate pattern keeps the robustness with far less boilerplate.
Mount a headless Linux box over ssh with OSXFuse and SshFS, then edit its Swift code in Xcode on your Mac and compile in a terminal on the machine.