Hi. How do I run compose on macosX64 target? Currently I have this code
fun main() {
Window(
title = "Youtube history",
) {
withDI(di = kodein) {
MaterialTheme(colorScheme = lightColorScheme()) {
MainScreen()
}
}
}
}
and when I run it, nothing happens. No errors, no warnings, program just exists. On JVM variant I have this and it all works:
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "Youtube history",
state = rememberWindowState(width = 700.dp, height = 400.dp)
) {
withDI(di = kodein) {
MaterialTheme(colorScheme = lightColorScheme()) {
MainScreen()
}
}
}
}
So how do I make it also work the same on macosX64 target? I might be missing
application {
but I can not import it for MacOS...