compose-navigation
compose-navigation copied to clipboard
[Question] How to implement UP navigation behavior
Hi,
if we consider the sample, especially the BottomTabsScreen, how would we implement an up navigation behavior, so that navigation goes from nested backstack (no matter if populated or not) to parent backstack.
Additional question. Lets say the navigation history looks like:
A0 --> A1 --> A2 --> B0 (default screen of nested backstack like BottomTabsScreen)
if we press UP button. is the history of parent backstack retained so A2 is displayed or would the default screen of this backstack be displayed (A0)?
Thanks in advance!
You can do it manually by doing popUntil { /* your desired screen */ }