Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let defaults = Defaults()
let person = Person(firstName: "Austin", lastName: "Feight", age: -3)
let fetched: Person? = defaults.fetch(Person.self)
print("\(fetched!.firstName) \(fetched!.lastName) is \(fetched!.age) years old")
// Output: Austin Feight is -3 years old
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.