Library to use AndroidX/Kotlin ViewModels with SwiftUI
kotlinx.coroutines
to 1.8.0androidx.lifecycle
to 2.7.0wasmJs
targetkotlinx.coroutines
to 1.8.0-RC2wasmJs
targetkotlinx.coroutines
to 1.8.0-RC2wasmJs
targetandroidx.lifecycle
to 2.6.2childViewModel(at:)
functions by removing the view model parameterPlease make sure to add the following opt-in to your Kotlin module:
sourceSets {
all {
languageSettings.optIn("kotlinx.cinterop.ExperimentalForeignApi")
}
}