https://kotlinlang.org logo
k

kpgalligan

11/04/2021, 10:57 AM
No. Some things are constructor
Copy code
single {
        DatabaseHelper(
            get(),
            getWith("DatabaseHelper"),
            Dispatchers.Default
        )
    }
Generally, the injects are in view model level classes. On iOS, we want to be able to create those classes directly in swift, without needing to try to deal with Koin in Swift. For example: https://github.com/touchlab/KaMPKit/blob/main/shared/src/iosMain/kotlin/co/touchlab/kampkit/NativeViewModel.kt
🙌 1