Pieter Bikkel
Pieter Bikkel

Reputation: 97

SwiftUI: Custom color for navigationBarTitle?

I want to use a custom navigtionBarTitle color. I have tried to do the following

But the color doesn't change :(. I want to use a custom color and not an UIColor.

I hope someone can help me with this.

Upvotes: 0

Views: 54

Answers (1)

Maichael Columpsi
Maichael Columpsi

Reputation: 41

try

.navigationBarTitle(Text("Hello World").foregroundColor(Color.red))

Upvotes: 1

Related Questions