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 running on macOSMusicPlayerExample running on LinuxMusicPlayerExample running on Windows
MusicPlayerExample running on an iPhone
MusicPlayerExample running on an iPhone
iOS
MusicPlayerExample running on an Android phone
Android

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.

CounterApp.swift
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. 1

    Same structure

    App, Scene, View and ViewBuilder follow the same structure you already use.

  2. 2

    Same state model

    @State, @Binding, @Environment and @AppStorage work the way you expect.

  3. 3

    Same layout and presentation

    VStack, HStack, modifiers, NavigationStack and 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 support

Quick 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 guide

Prefer plain SwiftPM? Add the package and import SwiftCrossUI and DefaultBackend.

Quick start
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.

SwiftCrossUI has 20+ example apps. See SwiftCrossUI in action for yourself.

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.

Sponsor on Open Collective