Zack117
Zack117

Reputation: 1065

SwiftUI how to change color of a basic Text object

For SwiftUI

.fontColor... no longer works.

Any thoughts on how to change the color of the text(not the background)?

Upvotes: 0

Views: 86

Answers (1)

pawello2222
pawello2222

Reputation: 54426

You can try:

Text("example").foregroundColor(.red)

Upvotes: 2

Related Questions