How will compose ios support hot reload?It is conv...
# compose-ios
a
How will compose ios support hot reload?It is convenient for developing. As kn is compiled to binary code, I'm just curious if it's possible to implement it.
👀 1
👍 1
j
Its theoretical possible but need to bridge over current androidx preview stuff being hard coupled with Android Gradle plugin I think. I think jetbrains working on new plugin not being AGP, which can make this work I think. Its mostly decouple Googles plugins from Android.
d
For now we don't plan to support hot reload in Compose for iOS. We are researching another ways to speedup development cycle. For example add possibility to use JVM for debug dev builds instead of iOS simulator.
j
@Dima Avdeev Do you plan making it work for common/Android at least in KMP? Like ignore if in iOS scope and using Android/jvm scope in common?
d
We don't have real prototypes. But if most of the code is written in commonMain, then it is possible to configure Desktop JVM target to looks and behave similar to iOS simulator.
It is simulator on JVM for a simulator on MacOS.
This approaches also opens possibility to test common code for non-MacOS host operating systems
Hot reload is good feature - we know it. But for now it is hard to support in Kotlin Native
But, Kotlin team also works for better compilation time.
j
Not sure how integration works in Android Gradle plugin, but if possible preview at least in IDE and not necessarily hot reload/live preview in device. That was what I thought of, just decouple Android specifics.