You have to property wrappers in SwiftUI that help you store simple data in UserDefaults. @AppStorage – one value for the whole app – use this for example for app settings @SceneStorage – one value per … Read more