SwiftUI: What is @AppStorage property wrapper
AppStorage @AppStorage is a convenient way to save and read variables from UserDefaults and use them in the same way as @State properties. It can be seen as a @State property which is automatically saved to (and read from) UserDefaults. You can think of the following: @AppStorage(“emailAddress”) var emailAddress: String = “sample@email.com” as an equivalent … Read more