UserDefaultsgood for? What is
UserDefaultsnot good for?
Suggested approach: This should immediately have you thinking about speed, size, and security:
UserDefaults is bad at large amounts of data because it slows your app load, it’s annoying for complex data types because of
NSCoding, and a bad choice for information such as credit cards and passwords – recommend the keychain instead. If you’re using SwiftUI extensively you could mention
Estimated difficulty: Easy
Link copied to your pasteboard.