diff --git a/01-WeSplit/WeSplit/WeSplit/ContentView.swift b/01-WeSplit/WeSplit/WeSplit/ContentView.swift index bf623b6..78f2e34 100644 --- a/01-WeSplit/WeSplit/WeSplit/ContentView.swift +++ b/01-WeSplit/WeSplit/WeSplit/ContentView.swift @@ -86,6 +86,7 @@ struct ContentView: View { // challenge 2 Section { Text(totalAmount, format: localCurrency) + .foregroundColor(tipPercentage == 0 ? .red : .black) // project 3 - challenge 1 } header: { Text("Total amount") }