Learning Time : 1h 40min
My Github : Hot Prospects Source Code
How to save and load data using UserDefaults in a SwiftUI app.
Prospects
initializer so that it loads its data from UserDefaults where possible.Prospects
array to UserDefaults whenever it changes.
save()
when adding a prospect or toggling its isContacted property.