mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-25 10:24:31 +01:00
21 lines
486 B
Kotlin
21 lines
486 B
Kotlin
import androidx.compose.runtime.getValue
|
|
import androidx.compose.runtime.mutableStateOf
|
|
import androidx.compose.runtime.setValue
|
|
import com.jakewharton.mosaic.Text
|
|
import com.jakewharton.mosaic.runMosaic
|
|
import kotlinx.coroutines.delay
|
|
|
|
fun main() = runMosaic {
|
|
// TODO https://github.com/JakeWharton/mosaic/issues/3
|
|
var count by mutableStateOf(0)
|
|
|
|
setContent {
|
|
Text("The count is: $count")
|
|
}
|
|
|
|
for (i in 1..20) {
|
|
delay(250)
|
|
count = i
|
|
}
|
|
}
|