logoalt Hacker News

GeekyBeartoday at 9:18 PM1 replyview on HN

Apple has not released a version of the SwiftUI framework for Android.

There are third party attempts to create something that lets SwiftUI code run on Android, just as Wine is third party software that allows you to run Win32 apps on Linux.

For example:

> Bringing Swift and SwiftUI to Android

https://skip.tools/blog/bringing-swift-to-android/


Replies

wahnfriedentoday at 10:29 PM

No one said it's first-party. And it's a good thing that it's not first-party! We want multiple options for deploying our code.

As I said, Wine provides emulation. But the SwiftUI on Android project does not emulate - it runs your SwiftUI code natively (as Swift that is compiled for Android), and maps it to native Android components, fully accessible and meeting platform expectations.

Completely different result and experience.

This also means that you can extend the SwiftUI on Android code with Android-specific code that will not run on iOS, to add other Android-specific UI. This is impossible with Wine + Win32.