For my answer, most of the credit should actually go to @Rion, as his answer inspired me.
I had an issue with using .sharedBackgroundVisibility(.hidden)
when actually using navigation, which I described here How to leftalign Text in Toolbar under iOS 26.
However, using .toolbarRole(.editor)
in combination with ToolbarItem(placement: .principal)
got me exactly the result I needed.
My only issue with @Rion's answer was that I could not customize the actual title; it was fixed to the standard system size. So, the combination above actually gives the proper result (at least on the iPhone).
tl;dr
SomeViewWithinNavigationStack()
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .principal) {
Text("My styled title")
}
}
.toolbarRole(.editor)