Daily iOS
Persistence

Persistence tools you've used

This is a written question on a take-home: "Which tools have you used to persist data so far?" Answer with what data you used each tool for and why, not with a list of names.

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

You pick by the data's size, structure, sensitivity, and lifetime: UserDefaults for small settings, Keychain for secrets, files for large binaries, and SwiftData, Core Data, or SQLite for structured data in volume.

Share a question