Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct Person {
var firstName: String
var lastName: String
var age: String
let person = Person(firstName: "Austin", lastName: "Feight", age: -3)
let fetchedPerson = UserDefaults.standard.fetch(Person.self)
assert(fetchedPerson == person)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment