Free preview lesson
Learn How Data Bugs Show Up
Spot the three symptoms
Why this matters: Before you can fix a data bug, you need to recognize what it looks like from the outside. Most data bugs in apps show up as one of three symptoms: data doesn't save, data shows twice, or data disappears.
Data that doesn't save happens when you enter something, it looks correct on screen, but it is gone after you close and reopen the app. Think of filling in a contact form, tapping Done, and finding the new contact missing the next day. The app showed you the change, but it never stored it permanently.
Data that shows twice happens when one item appears more than once in a list. Imagine adding a single to-do item and seeing two copies, or a payment appearing twice in a history screen. The item may be stored correctly, but the app displays or saves it more than once.
Data that disappears happens when something that was saved vanishes later. A note you wrote last week is simply not in the list anymore. This can come from a deletion you did not mean to trigger, or from a change that was never saved.
SwiftData is Apple's framework for storing app data on a device. Problems with it usually fall into these same three symptoms, which is why this simple sorting helps.
What to do now: Write one sentence for each symptom about your own app. Describe a real moment when you saw it, or imagine where it would most likely happen.