I am using xcode 13.2.1 iOS 15,i want to hide the navigational bar and the back arrow i have tried several methods. none of the answers worked
var body: some View {
NavigationView{
ZStack{
Text("Header") //Header View
Spacer ()
Text("Main")//Main View
Spacer()
Spacer()
Text("Bottom") //Bottom View
}.navigationTitle("")
.navigationBarHidden(true)
}.navigationViewStyle(.stack)
}