All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.tech.skot.core.components.SKRootStack.kt Maven / Gradle / Ivy

package tech.skot.core.components

import tech.skot.core.di.coreViewInjector

object SKRootStack:SKStack() {
    override val view = coreViewInjector.rootStack()

    fun resetToRoot() {
        state.screens.firstOrNull()?.removeAllScreensOnTop()
    }

    val screenOnTop: SKScreen<*>?
        get() = state.screens.lastOrNull()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy