Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 18 - Tapping the Same Tab Should Reset Navigation Stack #63

Open
iosYash opened this issue Feb 11, 2025 · 0 comments
Open

iOS 18 - Tapping the Same Tab Should Reset Navigation Stack #63

iosYash opened this issue Feb 11, 2025 · 0 comments

Comments

@iosYash
Copy link

iosYash commented Feb 11, 2025

Description
Currently, when a user taps the same tab in the bottom navigation bar, the navigation stack is not reset. If the tab has multiple pushed views, tapping it again should pop all routes and return to the root screen of that tab.

Expected Behavior
When tapping the currently selected tab again:
If there are pushed routes, pop them all to reset the tab to its root.
If already on the root screen, do nothing.

Current Behavior
The app does not pop all routes when tapping the same tab again.

Steps to Reproduce
Open the app and navigate to a tab.
Push multiple views in that tab using push(route).
Tap the same tab again (without switching to another tab).
Observe that the navigation stack does not reset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant