I’ve bought a minimal reproducible instance of DocumentGroup app utilizing a NavigationSplitView with a DetailView. I wish to fully take away the default Navigation Bar inside these views and provide my very own .toolbar. That is how I achieved this on iOS 18.0-18.3
App.swift
@predominant
struct App: App {
var physique: some Scene {
DocumentGroup(newDocument: BackButtonTestDocument()) { file in
NavigationSplitView {
Checklist {
NavigationLink("Element View", vacation spot: DetailView())
}
} element: {
DetailView()
}
.toolbar(.hidden, for: .navigationBar)
}
DocumentGroupLaunchScene("Again Button Take a look at") {
Colour.inexperienced
}
}
}
DetailView.swift
struct DetailView: View {
var physique: some View {
VStack {
Textual content("That is the element view")
}
.navigationBarBackButtonHidden(true)
.toolbar {
LightbulbButton()
}
}
}
LightbulbButton.swift
struct LightbulbButton: ToolbarContent {
var physique: some ToolbarContent {
ToolbarItem(placement: .topBarLeading) {
Button(motion: { print("Tapped") }) {
Label("Lightbulb", systemImage: "lightbulb")
}
}
}
}
This code bought me the consequence I needed:


Nevertheless this conduct appears to interrupt on iOS 18.4. I can repair the primary display screen by transferring the .toolbar(.hidden) modifier up contained in the NavigationSplitView. However I can not seem to discover a approach to get .navigationBarBackButonHidden(true) to work. Or to override the default navigation bar typically


How can I successfully override the default Navigation Bar with a customized button format in iOS 18.4 and onwards?
I’ve tried transferring the navigationBarBackButtonHidden(true) modifier to a number of locations however this modifier simply does not appear to work in any respect. Even when it did, I would nonetheless be caught with the title and the title bar menu.

