Build a Secure SwiftUI Property Wrapper for the Keychain
Securely save data for any Codable type in the encrypted database of your iOS and macOS apps
Published in
5 min readJan 22, 2021
When you want a property to be saved and loaded from the persistent storage called UserDefaults
, you can declare it like this:
@AppStorage(“MyKey”) var savedValue