Thanks, that works! Here's the SwiftUI version:
.navigationTitle("Collections") // needed for the back button menu
.toolbarTitleAlignment(.leading) // or .toolbarRole(.editor)
.toolbarTitleDisplayMode(.inline) // or .navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .principal) {
Text("Collections")
.font(.largeTitle.bold())
}
}Is there a way to get the same result without a custom toolbar item?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: