in term of future plans, could compose be used in ...
# compose
m
in term of future plans, could compose be used in iOS?
👀 3
s
🕵️‍♂️ The basic API seems to be defined in a
commonMain
and
androidMain
contains the Android implementation Was Jetpack Compose build to support (as much as possible) Kotlin Multiplateform ? 🤔 https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/compose/compose-runtime/src?autodive=0%2F%2F%2F
m
Compose-runtime can be compiled by Kotlin/Native after (relatively small) patch, see https://github.com/msink/kotlin-compose-sdl/tree/master/compose-runtime About next step - compose-compiler-plugin - seems that it will be possible only after it will be moved from google-patched Kotlin compiler to mainline JetBrains version.
s
It could be, but you're going to have exponentially better results using the native tool on the platform.
s
@msink If I remember correctly, compiler plugin uses jvm backend specific transformations which cannot be applied for native, so probably some things need to be migrated there as well.
a
as someone who teaches SwiftUI ... I have to say my Compose code benefits from understanding SwiftUI. And my SwiftUI code benefits from understanding Compose ... The Apple team has done an amazing job with the CombineFramework / SwiftUI. For the people who want to do SwiftUI on Android, I always tout the amazing work the Android Team is doing with Compose 🤪
1