SwiftUI 5 | TabView issue

Hello, All.

I am having an issue I just can seem to correct. My app is setup with a TabView. It has 5 tabs at the bottom. When I start the app fresh, the first(main) tab, 3rd tab, and last tab all work fine when selected. However, if I select the second or fourth tab, there is a 6 second delay before transitioning to that tab. In the console, after selecting either the second or fourth tab, once the view shows after the 6 second delay, it states: Gesture: System gesture gate timed out.

Can anyone provide any information as to why this is happening? Thank you.

Seriously? 34 views and not a single person willing to offer advice? Very dissapointing.

Did you ever find a solution to this? I am running across essentially the same problem.

My guess is that it's not a problem many people are running into. There isn't much on the web about it that I can find.

Hi. I just saw this and am having the same the issue since updating to XCode16. My assumption is that in your 2nd & 4th tab you are doing work in .OnAppear. This is what caused the issue for me. If you wrap that work in a queue with a short delay it should resolve it.

.onAppear {

            DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
                updateData(useLive: modelData.liveMkt, spotLive: modelData.spotLive)
            }
            
          }
SwiftUI 5 | TabView issue
 
 
Q