File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
composeApp/src/iosMain/kotlin Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ import org.koin.core.context.startKoin
2+
3+ actual class KoinInitializer {
4+
5+ actual fun init () {
6+ startKoin {
7+ modules(applicationModule, viewModelModule)
8+ }
9+ }
10+ }
Original file line number Diff line number Diff line change 11import androidx.compose.ui.window.ComposeUIViewController
2+ import platform.UIKit.UIViewController
23
3- fun MainViewController () = ComposeUIViewController { App () }
4+ fun MainViewController (): UIViewController = ComposeUIViewController (
5+ configure = {
6+ KoinInitializer ().init ()
7+ }
8+ ) {
9+ App ()
10+ }
Original file line number Diff line number Diff line change 1+ import org.koin.core.module.Module
2+ import org.koin.core.module.dsl.singleOf
3+ import org.koin.dsl.module
4+
5+ actual val viewModelModule: Module = module {
6+ singleOf(::ScreenAViewModel )
7+ }
You can’t perform that action at this time.
0 commit comments