vinivendra / Gryphon

The Swift to Kotlin translator.
https://vinivendra.github.io/Gryphon/
Other
609 stars 46 forks source link

SwiftUI to Jetpack Compose translation #107

Closed troy-lamerton closed 3 years ago

troy-lamerton commented 3 years ago

When working on a mobile app, the user interface must be created twice, or created once in a non-native language.

Now that:

It seems like a prime time to consider SwiftUI to Jetpack Compose translation. Would be curious to know if this is even possible? I would make use of such a tool if it can work well.

Jetpack Compose

Overview: https://developer.android.com/jetpack/compose

SwiftUI

Overview: https://developer.apple.com/xcode/swiftui/

troy-lamerton commented 3 years ago

updated description.

@vinivendra what do you think?

vinivendra commented 3 years ago

Hi Troy, thanks for the suggestion. This seems like it would be a really good thing to support, but also like something very complicated. We'd have to take a very deep look at how both libraries work to see if a translation is possible. For example:

Now that Gryphon isn't my full time job anymore, this doesn't seem like something I'd have the time to do well. That said, if you have experience with these technologies and would like to try it out, feel free to contribute! I'm willing to help in any way I can.