set text color swiftui code example Example: swiftui font color Text("The best laid plans") .foregroundColor(Color.red)