Storing user settings with UserDefaults – iExpense SwiftUI Tutorial 5/11

Опубликовано: 07 Август 2026
на канале: Paul Hudson
10,354
172

Download the completed project here: https://github.com/twostraws/hackingw...

Other parts in Project 7:

Introduction: https://www.hackingwithswift.com/book...

1. Using @State with classes:    • Using @State with classes – iExpense Swift...  
2. Sharing SwiftUI state with @Observable:    • Sharing SwiftUI state with @Observable – i...  
3. Showing and hiding views:    • Showing and hiding views – iExpense SwiftU...  
4. Deleting items using onDelete():    • Deleting items using onDelete() – iExpense...  
5. Storing user settings with UserDefaults: This video
6. Archiving Swift objects with Codable:    • Archiving Swift objects with Codable – iEx...  
7. Building a list we can delete from:    • Building a list we can delete from – iExpe...  
8. Working with Identifiable items in SwiftUI:    • Working with Identifiable items in SwiftUI...  
9. Sharing an observed object with a new view:    • Sharing an observed object with a new view...  
10. Making changes permanent with UserDefaults:    • Making changes permanent with UserDefaults...  
11. Final polish:    • Final polish – iExpense SwiftUI Tutorial 1...  

Wrap up and challenges: https://www.hackingwithswift.com/book...

You can find the full set of videos, along with transcriptions, challenges, tests, and more, in my free 100 Days of SwiftUI course: https://www.hackingwithswift.com/100/...

Watch the full 100 Days of SwiftUI playlist here:    • 100 Days of SwiftUI (iOS 17 edition)