Skip to content

Commit 1876d89

Browse files
author
MuhammadSayed
committed
Merge remote-tracking branch 'origin/master'
2 parents dd65f78 + 5542f71 commit 1876d89

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.muhammadsayed.bookstorecmp
22

33
import androidx.compose.ui.window.ComposeUIViewController
4-
import org.muhammadsayed.bookstorecmp.App
54

6-
fun MainViewController() = ComposeUIViewController { App() }
5+
fun MainViewController() = ComposeUIViewController {
6+
App()
7+
}

iosApp/iosApp/iOSApp.swift

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import SwiftUI
2+
import ComposeApp
23

34
@main
45
struct 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
}

0 commit comments

Comments
 (0)