.navigationTitle(Text("Hello").foregroundColor(.orange))
.navigationBarTitleDisplayMode(.inline)
How do I add a foreground color to a Navigation Bar Title in SwiftUI? This is a watchOS app and everything I tried doesn't work.
.navigationTitle(Text("Hello").foregroundColor(.orange))
.navigationBarTitleDisplayMode(.inline)
How do I add a foreground color to a Navigation Bar Title in SwiftUI? This is a watchOS app and everything I tried doesn't work.
I found that this solution worked:
.navigationTitle{
Text("Hello")
.foregroundColor(.orange)
}
I have:
NavigationView {
// my content
}
.navigationBarTitle(Text("Hello"), displayMode: .inline)
.foregroundColor(.orange)