JoeBro Desktop: Porting a SwiftUI Mac App to Rust and egui for Windows and Linux
The developer ported a SwiftUI Mac app to Rust using the egui immediate-mode GUI, producing a single native GPL-3.0 binary for Windows and Linux without a web runtime. Immediate mode suited the app's live data, such as agent sessions and streaming chat, though egui draws every widget itself and does not inherit system styling. Design tokens from the Swift code were ported almost line for line into a Rust theme module, making that the most mechanical part of the work. Font weights had to be handled manually by bundling separate Geist font files and exposing them as named families. SF Symbols were replaced by mapping Apple symbol names to Phosphor icons, with fallbacks and a test to guard against missing icons.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in