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

darwinMain.dev.programadorthi.routing.darwin.UIKitRoutingExt.kt Maven / Gradle / Ivy

The newest version!
package dev.programadorthi.routing.darwin

import dev.programadorthi.routing.core.Routing

public fun Routing.popController(animated: Boolean = false) {
    popToController(viewController = null, animated = animated)
}

public fun Routing.popToController(
    viewController: UIKitUIViewController?,
    animated: Boolean = false,
) {
    val navigatorController = uiNavigationController

    if (viewController != null) {
        navigatorController.popToViewController(
            viewController = viewController,
            animated = animated,
        )
    } else {
        navigatorController.popViewControllerAnimated(animated = animated)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy