According to Apple’s documentation, UserDefaults is an interface to the user’s default database, where you store key-value pairs persistently across launches of your app.
UserDefault can save integers, booleans, strings, arrays, dictionaries, dates and more, but you should be careful not to save too much data because it will slow the launch of your app.

#userdefaults #ios #xcode #swift #ios-development

User Defaults in Swift
1.55 GEEK