Picking a local store
A new iOS project has to store a favorites list, the login session, downloaded PDFs, and display settings locally. Which store would you pick for each?
A new iOS project has to store a favorites list, the login session, downloaded PDFs, and display settings locally. Which store would you pick for each?
Favorites go to SwiftData (a list that grows, with search and sorting), the session to the Keychain, PDFs to files (the caches directory when you can download them again), and settings to UserDefaults. You decide on size, structure, security, and lifetime (whether it gets backed up).
PersistenceShort answerBasics
Which requirements push you to Core Data (or SwiftData) instead of UserDefaults or a…
#storage-choice #swiftdata #core-data
PersistenceShort answerIntro
This is a written question on a take-home: "Which tools have you used to persist data so…
#userdefaults #keychain #swiftdata
PersistenceMultiple choiceBasics
Select all the pairs where a finance app's storage requirement is matched with the right…
#userdefaults #keychain #swiftdata
PersistenceMultiple choiceIntro
Compared with UserDefaults, select all the correct characteristics of the Keychain.
#userdefaults #keychain