'A problem with the way to display the NavigationView

Use only one NavigationView I did not repeat it

But it appears to me at first

enter image description here

I have data in the first tab Home

All files I didn't put NavigationView only these

Perhaps the problem is from the Tab View file, is there an error?

struct CustomTabView: View {

@State var selectedTap = "iconeTap2"
    var body: some View {
    
    ZStack(alignment: Alignment(horizontal: .center, vertical: .bottom)) {
        
        TabView(selection: $selectedTap) {
           
           Tap1Home()   //Here Frist Tab
                .tag("iconeTap2")
            
            Tap2Home()
                .tag("iconeTap3")
            
            Tap2Home()
                .tag("iconeTap4")
            
            Tap2Home()
                .tag("iconeTap5")
        }
        .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
        .ignoresSafeArea(.all, edges: .bottom)
        
        HStack(spacing: 0) {
           
            ForEach(tabs, id: \.self) { image in
              
                TabButton(image: image, selectedTab: $selectedTap)
                
                if image != tabs.last {
                    
                    Spacer(minLength: 0)
                }
            }
        }
        .padding(.horizontal,25)
        .padding(.vertical,5)
    }
    .ignoresSafeArea(.keyboard, edges: .bottom)
}

here I put NavigationView

struct Tap1Home: View {

var body: some View {
    
    
    NavigationView {
        VStack {
            Tap1Section1()
            // Section *** 2
            Tap1Section2()
            Spacer()
        }
        .navigationTitle("22")
    }
}
}


Solution 1:[1]

There is a hint on screenshot - some NavigationLink is activated inside view which have "Home" as navigationTitle. You may have used NavigationLink's init with 'isActive' property with its value set to true in Tap1Section1 or Tap1Section2.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Becod