Skip to content

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

@iosYash

Description

@iosYash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions