I have a KMP project with not-shared UI (Compose f...
# multiplatform
r
I have a KMP project with not-shared UI (Compose for JVM, but SwiftUI for macOS/iOS), and I'm wondering what the recommended/best way is to have the SwiftUI part to reactively updated when the shared core logic has new data. This tutorial mentions a 3rd-party lib named `KMP-NativeCoroutines`; is that what most people like to use?
a
I'd recommend having a look at https://skie.touchlab.co/ it offers a few more niceties than KMP-NativeCoroutines when using Kotlin from Swift.
r
Thanks for the tip! Looks like a great tool
r
You might be interested in KMP-ObservableViewModel. It allows you to use Kotlin/AndroidX ViewModels with SwiftUI directly.
1