Skip to content

Commit f70bfc8

Browse files
committed
fix iOS
1 parent fe02f72 commit f70bfc8

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ You can open the web application by running the `:composeApp:wasmJsBrowserDevelo
4141
- Launch Xcode in a separate window. The first time, you may also need to accept its license terms and allow it to perform some necessary initial tasks.
4242
- In the list of run configurations, select **iosApp** and click **Run**.
4343
- If you don't have an available iOS configuration in the list, add a new iOS simulated device.
44+
4445
## Authors
4546

4647
- [@Gosunet](https://www.github.com/Gosunet)

composeApp/src/commonMain/kotlin/DesignSystem.kt

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import androidx.compose.material3.FilledTonalButton
1111
import androidx.compose.material3.MaterialTheme
1212
import androidx.compose.material3.Text
1313
import androidx.compose.runtime.Composable
14+
import androidx.compose.runtime.getValue
15+
import androidx.compose.runtime.mutableStateOf
16+
import androidx.compose.runtime.remember
17+
import androidx.compose.runtime.setValue
1418
import androidx.compose.ui.Modifier
1519
import androidx.compose.ui.unit.dp
1620
import components.AssistChip
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import platform.UIKit.UIDevice
22

3-
class IOSPlatform: Platform {
4-
override val name: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
3+
class IOSPlatform : Platform {
4+
override val name: String =
5+
UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
56
}
67

78
actual fun getPlatform(): Platform = IOSPlatform()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)