This story was written by: @element. Learn more about this writer by checking @element's about page,
and for more stories, please visit hackernoon.com.
An iOS app rarely stores one kind of data. A travel planner stores six: preferences, secrets, domain entities, user files, disposable cache, and sync metadata. Five of the six get placed without naming a persistence framework at all, which makes the SwiftData versus Core Data question the last one to ask rather than the first.
▎
▎ Along the way: which accessibility class a Keychain token needs, why the ThisDeviceOnly classes are not about keeping secrets out of backups, which file protection class an attachment needs, when the system may delete your cache (never while the app is running), and what to do when the store refuses to open.
Podden och tillhörande omslagsbild på den här sidan tillhör
HackerNoon. Innehållet i podden är skapat av HackerNoon och inte av,
eller tillsammans med, Poddtoppen.