File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
example/src/commonMain/kotlin Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ fun UITest(
339339 modifier = Modifier
340340 .statusBarsPadding()
341341 .captionBarPadding()
342- .padding(horizontal = 4 .dp)
342+ .padding(all = 12 .dp)
343343 )
344344 }
345345}
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ import androidx.compose.runtime.setValue
1212import androidx.compose.runtime.withFrameMillis
1313import androidx.compose.ui.Modifier
1414import androidx.compose.ui.graphics.Color
15- import kotlinx.coroutines.Dispatchers
16- import kotlinx.coroutines.withContext
15+ import kotlinx.coroutines.coroutineScope
1716import top.yukonga.miuix.kmp.basic.Text
1817
1918/* *
@@ -39,13 +38,13 @@ fun FPSMonitor(modifier: Modifier = Modifier) {
3938 }
4039
4140 Text (
42- text = " FPS: $fps " ,
4341 modifier = modifier,
42+ text = " FPS: $fps " ,
4443 color = color
4544 )
4645
4746 LaunchedEffect (Unit ) {
48- withContext( Dispatchers . Default ) {
47+ coroutineScope {
4948 while (true ) {
5049 withFrameMillis { frameTimeMillis ->
5150 if (lastFrameTime != 0L ) {
Original file line number Diff line number Diff line change @@ -18,9 +18,15 @@ kotlin.mpp.enableCInteropCommonization=true
1818kotlin.native.ignoreDisabledTargets =true
1919kotlin.native.useEmbeddableCompilerJar =true
2020kotlin.native.enableKlibsCrossCompilation =true
21- # Wasm
21+ # Incremental compilation
22+ kotlin.incremental =true
23+ kotlin.incremental.multiplatform =true
24+ kotlin.incremental.jvm.fir =true
25+ kotlin.incremental.js =true
26+ kotlin.incremental.js.klib =true
27+ kotlin.incremental.native =true
2228kotlin.incremental.wasm =true
23- # Experimental
29+ # Experimental target
2430org.jetbrains.compose.experimental.macos.enabled =true
2531org.jetbrains.compose.experimental.jscanvas.enabled =true
2632# Xcode
You can’t perform that action at this time.
0 commit comments