Swift – How to save a list into UserDefaults
In this post, we will see how to save a list of objects into UserDefaults. First of all, we create a new Swift project and we add a Struct called Person: [PERSON.SWIFT] Then, we define a Class called People, used to save and load data from UserDefaults: [PEOPLE.SWIFT] Now, we create a SwiftUI View file… Read More »