SergioR
06/07/2024, 4:32 PMobject NavigationAppViewModel {
private val _shouldShowFirstViewController = MutableStateFlow(false)
val shouldShowFirstViewController: StateFlow<Boolean> = _shouldShowFirstViewController
fun toggleViewController() {
_shouldShowFirstViewController.value = !_shouldShowFirstViewController.value
}
}
this is the object and I want to use this function toggleViewController
in common main using compose multiplatform and iosApp
context: Im usign compose multiplatform and in a specific moment i want to change the ViewController used in iosApp to use just swift but also I want to go back to compose when this variable changeSergioR
06/11/2024, 1:30 PM