Whenever we need to save some basic, not secure data, such as settings for an app, we refer to UserDefaults. However, SwiftUI comes with the @AppStorage property wrapper that allows us to read and write data with UserDefaults in a very easy and elegant way. In the present article let’s…