With UserDefaults, you can store small pieces of data persistently in iOS. Basically, it is a key-value store that saves user preferences, settings, and other lightweight data that needs to persist across app launches.
Using UserDefaults is simple an...