
2026/10/30 5:56
ElementaryUI – Swift, in the Browser
RSS: https://news.ycombinator.com/rss
要約▶
本文
Skip to contentElementaryUISwift, in the browser.🌐Run declarative Swift applications natively in the browser with WebAssembly🎨SwiftUI-inspired APIsFamiliar and intuitive syntax for building web UIs💫Built-in ReactivityAutomatic state management with @State, @Environment, and @Reactive📦Tiny BinariesFull Embedded Swift support means kB-sized wasm bundles instead of MB✨Magical AnimationsPowerful CSS-based animation system including automatic FLIP transitions🚀Vite-Powered DevelopmentFast dev server with hot reload for rapid iterationswift@View struct LoveCounter { @State var count = 1
var body: some View { p { String(repeating: "❤️", count: count) } if count < 10 { button { "More Love" } .onClick { count += 1 } } else { p { "Enough love for you!" } button { "Less Love" } .onClick { count = 1 } } }
}Thank you to everyone supporting this open‑source project financially. Please consider joining them by sponsoring ElementaryUI.