Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 79992ca

Browse files
committedApr 22, 2025·
Revert main.uikit.kt
1 parent 25efbda commit 79992ca

File tree

1 file changed

+2
-43
lines changed
  • compose/mpp/demo/src/uikitMain/kotlin/androidx/compose/mpp/demo

1 file changed

+2
-43
lines changed
 

‎compose/mpp/demo/src/uikitMain/kotlin/androidx/compose/mpp/demo/main.uikit.kt

+2-43
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
11
// Use `xcodegen` first, then `open ./SkikoSample.xcodeproj` and then Run button in XCode.
22
package androidx.compose.mpp.demo
33

4-
import androidx.compose.foundation.layout.Column
5-
import androidx.compose.foundation.layout.fillMaxSize
6-
import androidx.compose.foundation.layout.safeDrawingPadding
7-
import androidx.compose.foundation.text.input.rememberTextFieldState
8-
import androidx.compose.material.Button
9-
import androidx.compose.material.MaterialTheme
10-
import androidx.compose.material.Text
11-
import androidx.compose.material.TextField
124
import androidx.compose.mpp.demo.bugs.IosBugs
135
import androidx.compose.mpp.demo.bugs.StartRecompositionCheck
146
import androidx.compose.runtime.Composable
15-
import androidx.compose.runtime.mutableStateOf
7+
import androidx.compose.runtime.ExperimentalComposeApi
168
import androidx.compose.runtime.remember
179
import androidx.compose.ui.ExperimentalComposeUiApi
18-
import androidx.compose.ui.Modifier
19-
import androidx.compose.ui.platform.InterceptPlatformTextInput
2010
import androidx.compose.ui.window.ComposeUIViewController
2111
import kotlinx.cinterop.BetaInteropApi
2212
import kotlinx.cinterop.autoreleasepool
2313
import kotlinx.cinterop.cstr
2414
import kotlinx.cinterop.memScoped
2515
import kotlinx.cinterop.toCValues
26-
import kotlinx.coroutines.awaitCancellation
2716
import platform.Foundation.NSStringFromClass
2817
import platform.UIKit.UIApplication
2918
import platform.UIKit.UIApplicationDelegateProtocol
@@ -54,37 +43,7 @@ fun main(vararg args: String) {
5443
parallelRendering = true
5544
}
5645
) {
57-
MaterialTheme {
58-
// IosDemo(arg)
59-
Column(modifier = Modifier.fillMaxSize().safeDrawingPadding()) {
60-
Text("Hello World!")
61-
Button({}) {
62-
Text("Hello Button!")
63-
}
64-
65-
val text = rememberTextFieldState("test")
66-
InterceptPlatformTextInput(
67-
interceptor = { _, _ -> awaitCancellation() }
68-
) {
69-
TextField(text)
70-
}
71-
72-
val text1 = remember { mutableStateOf("test") }
73-
InterceptPlatformTextInput(
74-
interceptor = { _, _ -> awaitCancellation() }
75-
) {
76-
TextField(text1.value, onValueChange = { text1.value = it})
77-
}
78-
79-
80-
val text2 = rememberTextFieldState("test")
81-
TextField(text2)
82-
83-
val text133 = remember { mutableStateOf("test") }
84-
TextField(text133.value, onValueChange = { text133.value = it})
85-
86-
}
87-
}
46+
IosDemo(arg)
8847
}
8948
}
9049
}

0 commit comments

Comments
 (0)