Swift Beyond Apple

Status and tools Official support (Ubuntu, Debian, Fedora, Amazon Linux, RHEL). Foundation, SwiftPM, LSP. Static Linux SDK (musl) for fully static binaries.

Official toolchain. Foundation, SwiftPM. Win32 interop. GUI via WinUI bindings (The Browser Company's swift-winrt).

Community and workgroup efforts (the Swift Android SDK, Skip transpiles SwiftUI → Kotlin/Compose, swift-java). An official Android workgroup formed in 2025.

Embedded Swift A subset of Swift for microcontrollers (ARM Cortex-M, RISC-V, ESP32, Raspberry Pi Pico): no runtime reflection or existentials by default, tiny binaries

SwiftWasm, plus official Wasm SDK support (Swift 6.2). JavaScriptKit, ElementaryUI/Tokamak-style web UIs.

#!/usr/bin/env swift scripts, swift-sh (dependencies in scripts) Cross-platform UI

Skip, Flutter/Compose interop via C ABI, Qt via C++ interop

#!/usr/bin/env swift
import Foundation
let args = CommandLine.arguments.dropFirst()
print("Hello from a Swift script! Args: \(args)")
// Embedded Swift (blink an LED: conceptual)
@main
struct Blink {
    static func main() {
        let led = DigitalOut(pin: 25)
        while true {
            led.toggle()
            sleep(milliseconds: 500)
        }
    }
}
// swiftc -enable-experimental-feature Embedded -target armv6m-none-none-eabi ...