Follow along at https://www.hackingwithswift.com/100/swiftui/24.
This day covers Part Two of Project 3: Views and Modifiers
in the 100 Days of SwiftUI Challenge. (Project 3 files can be found in the directory for Part One.)
In addition to recapping the material covered during the project's other days, Day 24 focuses on extending the project according to a set of challenges.
Create a custom
ViewModifier
(and accompanyingView
extension) that makes a view have a large, blue font suitable for prominent titles in a view.
- 🔗 Commit
Go back to project 1 and use a conditional modifier to change the total amount text view to red if the user selects a 0% tip.
- 🔗 Commit
Go back to project 2 and create a
FlagImage()
view that renders one flag image using the specific set of modifiers we had.
- 🔗 Commit