Jetpack Compose, Android App Development, Mobile App Development, Kotlin, Kotlin Beginners.
However, I would argue that this shouldn’t be a best practice, and that if you need to access a variable in the view it should come from the view model. I wanted to include it here simply to let you know that it is possible though I wouldn’t recommend it. // NavigationStack.kt import