All posts

Posts tagged with: SwiftData

4 posts found

A stack of envelopes with handwritten addresses, one marked as returned to sender
Swift iOS Development

Your Saved File Paths Break When the User Gets a New iPhone. The Files Never Moved.

Storing an absolute file URL in your database works perfectly until a device restore or iCloud sync hands your app a new container path. Here's why the bug survives every test you run, and how to store paths that keep working.

7 min read
An open drawer of a vintage card catalog cabinet, packed with densely filed index cards
SQLite SwiftData

A 16-Year-Old SQLite Bug Just Surfaced. Your SwiftData App Is Sitting on the Same Engine.

Tailscale spent six months and 19 database corruptions tracking down the SQLite WAL-Reset bug, unfixed since 2010 and patched in 3.51.3. SwiftData and Core Data both run on SQLite in WAL mode — so I checked which version iOS 26.2 actually ships, and what it means for your app.

9 min read
A stack of labeled cardboard moving boxes and houseplants against a wall, mid-move.
SwiftData Core Data

SwiftData Two Years Later: What's Solid, What Still Bites, and the Migration Test You're Not Writing

Day 14 of the 30-day iOS series. SwiftData is about two years old now, and the honest verdict is mixed. I already wrote the long field report on where it broke in production — this post is the part that report didn't have room for: a VersionedSchema + SchemaMigrationPlan test that proves a schema change is safe BEFORE TestFlight finds out for you.

12 min read
Glassy abstract iOS interface — representing the SwiftUI and SwiftData layer that underpins modern iOS apps in 2026
SwiftData Core Data

I Migrated Two Apps to SwiftData. Eighteen Months Later, I'm Migrating Half of It Back.

SwiftData turns three at WWDC 2026. After running it in production across two shipping iOS apps for a year and a half, here's an honest field report — what works, what quietly broke, and the three places we went back to Core Data and don't regret it.

10 min read