You can now use the .toolbar
-modifier to set the NavigationBar principal content as you please:
.toolbar {
ToolbarItem(placement: .principal) {
Text("Custom Title")
.font(.title)
}
}
Is there an equally simple way to customize the Back-button (text and/or whole button) that does not involve hiding the default button and creating your own, which then also requires recreating the correct functionality (ie. actually going back and enabling swipe to go back)?
Use
UIButton()
.