Native Swift apps.
Everywhere.
A SwiftUI-style framework for building native apps in Swift. Write your UI once and run it on macOS, Linux, Windows, iOS, Android and tvOS.






MusicPlayerExample on macOS and iOS. MusicPlayerExample on iOS and Android.
SwiftUI-style
If you know SwiftUI,
you know SwiftCrossUI.
Same App, Scene and View structure. Same state, layout and presentation patterns. SwiftCrossUI
isn't a drop-in replacement, but there's very little new to learn.
import SwiftCrossUI
import DefaultBackend
@main
struct CounterApp: App {
@State var count = 0
var body: some Scene {
WindowGroup("Counter") {
VStack(spacing: 16) {
Text("Count: \(count)")
.font(.title)
HStack(spacing: 12) {
Button("-") { count -= 1 }
Button("+") { count += 1 }
}
}
.padding(32)
}
}
} - 1
Same structure
App,Scene,ViewandViewBuilderfollow the same structure you already use. - 2
Same state model
@State,@Binding,@Environmentand@AppStoragework the way you expect. - 3
Same layout and presentation
VStack,HStack, modifiers,NavigationStackand sheets are all familiar.
Not every SwiftUI API carries over, but the core patterns do.
Platforms
Native widgets everywhere.
The same MusicPlayerExample, rendered with each platform's own widgets. No web view, no lookalike controls. On phones, split views collapse to a single column, sheets support detents, and safe areas are handled for you.
See platform supportQuick start
Get started in minutes.
Swift Bundler creates the project, builds it, and runs it. The SwiftCrossUI template gives you a working window without any setup.
Read the full guidePrefer plain SwiftPM? Add the package and import SwiftCrossUI and DefaultBackend.
curl -fsSL https://sbun.dev/install.sh | sh
sbun create HelloWorld --template SwiftCrossUI
cd HelloWorld && sbun run Targeting iOS or Android? Use sbun run --device <Your device>
Examples
See what you can build.
Support the project
Help keep SwiftCrossUI moving.
SwiftCrossUI is used in production, but it's still young. Some features are still missing. Sponsorships fund development time, CI and the work that turns missing features into shipped ones.


