Giorgi
05/06/2023, 8:00 PMfun 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...Mark Murphy
05/07/2023, 6:06 PM