Skip to content

Commit

Permalink
feat(WeSplit): add project 3 challenge 1
Browse files Browse the repository at this point in the history
  • Loading branch information
plskz committed Dec 11, 2022
1 parent 5a01317 commit d39e307
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 01-WeSplit/WeSplit/WeSplit/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit d39e307

Please sign in to comment.