iOS Dev 27: UserDefaults for Data Persistence | Swift 5, XCode 12

Опубликовано: 19 Март 2026
на канале: Emmanuel Okwara
3,448
95

In this video, we learn how to persist data through app launches using the UserDefaults.

We start by learning how to store a value of a basic type (Boolean), then we move on to storing values of a custom structure type (User)

We also learn multiple ways of abstracting complexities either as an extension, or by creating a manager.

Additional Resources:
Yummie Playlist:    • 1. Food Ordering App (Yummie) Demo | Swift...  
Encodable & Decodable:    • iOS Dev 26: Encodable & Decodable | Swift ...  
Error Handling:    • iOS Dev 18: Error Handling (Try|Do|Catch) ...  

Say Hi on Social Media:
LinkedIn:   / ​​  
Twitter:   / its_macco  

Video Content
1. Introduction 00:00
2. Project Setup & Reason for Data Persistence 0:42
3. Saving Data to UserDefaults Database 04:10
4. UserDefaults Extension 13:31
5. Storing a Custom Type 19:15
6. Conclusion 33:42
7. Bloopers 36:26