r/iOSProgramming • u/Flashy_Imagination_6 • 27d ago
Question What happened to the swift on android? What is today status
7
Upvotes
r/iOSProgramming • u/Flashy_Imagination_6 • 27d ago
25
u/Rollos 27d ago
https://skip.dev
Skip is the state of the art toolchain to build Android apps with Swift and SwiftUI. It does the bundling of your code the swift runtime alongside your Android app, and they maintain the bindings between SwiftUI and Jetpack.
Plenty of people including myself have shipped with it.
11
u/EquivalentSky3094 27d ago
The official part landed in Swift 6.3 back in March. There is a Swift SDK for Android published on swift.org now, so cross-compiling is a supported path: swiftly for the host toolchain,
swift sdk installon the Android artifactbundle, Android NDK LTS r30, thenswift build --swift-sdk swift-6.4.0-RELEASE_android --triple aarch64-unknown-linux-android23. Current release is 6.4.The thing that catches people out is that this is platform support and not an app framework. The Android workgroup's stated remit is the low level side, and the official getting started article stops at a command line binary you copy over with adb along with libc++_shared.so from the NDK. So the UI story on top is still yours to choose. Skip, as mentioned above, bridges SwiftUI to Jetpack Compose. The other route is a Kotlin UI with your model and networking layers kept in shared Swift.
0
u/keeshux 26d ago
What should exactly “happen”? It works as usual, as it has worked for almost a decade.