AnhCaooo / Sthor

iOS application that serve exchange electric price in Finland
0 stars 0 forks source link

Bug: SwiftUI TabView NavigationLink home tab not navigating back #17

Open AnhCaooo opened 3 months ago

AnhCaooo commented 3 months ago

Background:

This issue occurs within our application that utilizes a TabView for managing multiple tabs. The first tab represents the home screen. Within the home tab, a GroupBox contains a NavigationLink that navigates the user to a 'Electric' view.

Current Behavior:

The user taps the NavigationLink within the home tab, successfully navigating to the 'Electric' view. While in the 'Electric' view, tapping the home tab icon (represented by systemImage of "house") has no effect.

Expected Behavior:

Tapping the home tab icon while in any other tab view should navigate the user back to the home screen. This includes scenarios where the user has already navigated away from the home screen using the NavigationLink.

Acceptance Criteria:

AnhCaooo commented 3 months ago

Some ideas:

AnhCaooo commented 1 month ago

This maybe is not valid any more since I decided to put NavigationStack to ContentView.

AnhCaooo commented 1 month ago

Adding NavigationStack did create another issue -> remove it and reopen this issue