HomeiOS Developmentios - Navigation title not exhibiting up when navigating in SwiftUI

ios – Navigation title not exhibiting up when navigating in SwiftUI


Introduction:
I’ve a welcome display screen which mainly has a button and navigates to a TabView which has all of the Screens of the App.

Downside:
The WelcomeScreen solely hundreds the primary time the App is opened, that means, as soon as the person navigates to the TabView, I need to conceal the “again” button, which I feel I am attaining, BUT the navigationTitle isn’t showing.
Does not seems the “again” button and in addition not the navigationTitle and toolbar. and I do not perceive why. I am caught with this 2 days already.

Code of navigation in WelcomeScreen:

.navigationDestination(isPresented: $navigateToOverviewScreen) {
                TabNavigation()
}

Code of the TabView:

struct TabNavigation: View {
var physique: some View {
    TabView {
        OverviewScreen()
            .tabItem {
                Picture(systemName: "record.bullet.clipboard")
                Textual content("overview")
            }
        SettingsScreen()
            .tabItem {
                Picture(systemName: "gear")
                Textual content("settings")
            }
    }
    .navigationBarBackButtonHidden(true)
    .accentColor(.black)
}

}

As soon as I ship the app to background and I open it again, then the navigationTitle seems.

Please assist!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments