OpenSwiftUIProject / OpenSwiftUI

[WIP] Open source implementation of Apple's SwiftUI.
https://swiftpackageindex.com/OpenSwiftUIProject/OpenSwiftUI/main/documentation/openswiftui
MIT License
912 stars 27 forks source link

How possible would it be to build for Android? #99

Open ceopaludetto opened 1 month ago

ceopaludetto commented 1 month ago

I love Swift and its expressiveness, and I'm tired of using cross-platform frameworks that either is a mess to maintain (react native) or uses canvas to build the UI (flutter and compose multiplatform), so I've read about JNI and NDK and also found previous attempts to bridge Android APIs into Swift (https://swiftpackageindex.com/PureSwift/Android). Considering that the Graph implementation here can be ported to different backends (GTK, Windows, ...), would it be possible to port to Android as well?

Kyle-Ye commented 1 month ago

Yes. As long as we have a complete cross platform implementation of the OG.

The current Apple's AG is implemented using ObjC and C++ and have heavy dependency on CF and ObjectiveC runtime.

Free feel to contribute here and do not forgot to add your test case.