Colton Idle
09/01/2023, 5:31 PMPriyanshu Jain
09/03/2023, 5:57 AMfactory{ ExampleViewModel() }
and are referred by
//Using this approach because inline Compose function do not work for Kotlin/Native target (like iOS), and seems like a compiler bug
val viewModel = koinViewModel(ExampleViewModel::class)
You will have to add the following dependency for koin in your common module's commonMain sourceSet
api("moe.tlaster:precompose-koin:$precompose_version")
Colton Idle
09/04/2023, 12:10 AM