File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed
composeApp/src/iosMain/kotlin/org/muhammadsayed/bookstorecmp Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1- ![ BookStore] ( https://github.com/abualgait/BookStoreKMP/assets/38107393/e49f80bf-43b5-4ad0-946f-a12339548cf6 )
1+ ![ BookStore] ( https://github.com/abualgait/BookStoreKMP/assets/38107393/a68e240d-e467-415d-b543-5d7a8caa9f9c )
22
33# BookStoreKMP
44
Original file line number Diff line number Diff line change 1+ package org.muhammadsayed.bookstorecmp
2+
3+ import org.koin.core.KoinApplication
4+ import org.muhammadsayed.bookstorecmp.di.start
5+
6+
7+ fun initKoin () {
8+ KoinApplication .start()
9+ }
Original file line number Diff line number Diff line change 11package org.muhammadsayed.bookstorecmp
22
33import androidx.compose.ui.window.ComposeUIViewController
4- import org.muhammadsayed.bookstorecmp.App
54
6- fun MainViewController () = ComposeUIViewController { App () }
5+ fun MainViewController () = ComposeUIViewController {
6+ App ()
7+ }
Original file line number Diff line number Diff line change 11import SwiftUI
2+ import ComposeApp
23
34@main
45struct iOSApp : App {
5- var body : some Scene {
6- WindowGroup {
7- ContentView ( )
8- }
9- }
6+ init ( ) {
7+ HelperKt . doInitKoin ( )
8+ }
9+
10+ var body : some Scene {
11+ WindowGroup {
12+ ContentView ( )
13+ }
14+ }
1015}
You can’t perform that action at this time.
0 commit comments