I can confirm this is also problem when having the toolbar item in .principal location when the view is first in hierarchy.
Subsequent views display the title properly.
NavigationView {
Text("Content")
.toolbar {
ToolbarItem(placement: .principal) {
Text("Title")
}
}
}
NavigationStack works as expected. Adding .navigationViewStyle(.stack) does not.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: