Weird UI bug when using TabView & NavigationStacks & Toolbars in TCA #2458
Closed
filiplazov
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @filiplazov, I don't have time to look into this deeply now, but the first thing that stands out is that in the TCA version you have the NavigationStack { // ContentView
TabView { // DashboardView
NavigationStack {
…
}
}
} Pretty sure that is causing at least some of the problems. Seems like you want to drop the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I did not report this as an issue since I am still new to TCA, and I was hoping that there is some thing I am not doing correctly. So I wanted to share the issue I have and if there are no ways to solve it with the existing tools I will create a new issue / bug appropriately.
I am using both Xcode 14.3.1 (iOS16) and Xcode 15 RC (iOS17) to reproduce the issue and TCA version 1.2.0.
What I want to achieve is to have a Root view that switches on a given state (enum), and it either shows a login screen or a dashboard screen (logged in). The dashboard screen has 3 tabs (first, second, third) and each of them contains a NavigationStack and a navigation title along with a single toolbar item. I have created this in pure SwiftUI, with extremely simple code to convey what I Intend to do.
I wanted to recreate the same but with TCA and I was inspired by the
TicTacToe
example app that comes with TCA, where the game screen is where I replaced it with the dashboard and the tabview UI. However I have noticed that the UI acts strange, as in there are no navigation titles displayed, and whenever I open a new tab a new toolbar item is added to a single navigation bar instead of each tab having its own navigation bar with a single toolbar item. Here is a gif of how it works.And here is the code using TCA:
Am I doing something wrong? Am I not holding it right 😂 ? Or is this a legit bug?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions