Skip to content

1.1.0

Compare
Choose a tag to compare
@jb-compose-bot jb-compose-bot released this 24 Feb 11:32
08bdcea

Desktop

Features

Fixes

API changes

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.window.singleWindowApplication

private var time by mutableStateOf(System.nanoTime())
private var frame by mutableStateOf(0)

fun main() = singleWindowApplication {
    if (frame == 0) {
        frame++
    } else if (frame == 1) {
        val duration = ((System.nanoTime() - time) / 1E6).toLong()
        println("First frame millis: $duration")
    }
}

Updated dependencies

This version of Compose Multiplatform is based on the next Jetpack Compose libraries: