Thursday, June 19, 2025

SwiftData and Core Data at WWDC25

SwiftData: Dive into inheritance and schema migration:

Discover how to use class inheritance to model your data. Learn how to optimize queries and seamlessly migrate your app’s data to use inheritance. Explore subclassing for building model graphs, crafting efficient fetches and queries, and implementing robust schema migrations. Understand how to use Observable and persistent history for efficient change tracking.

I’m glad to see that inheritance isn’t on the chopping block, as some feared, but otherwise this was disappointing. For the second year in a row, there don’t seem to be any new features for Core Data (not even a mention in the session) or for integrating Core Data and SwiftData. Is Core Data frozen in time or still getting maintenance? How are you supposed to migrate when the feature sets—and even IDs—aren’t equivalent? Aren’t there tons of apps built on Core Data? What are they supposed to do? It seems like Apple doesn’t care.

Fatbobman:

SwiftData added only one feature this year—model inheritance—which isn’t widely used by most developers. Other highly requested capabilities, such as additional sync options (shared, public) and dynamic predicate adjustments, didn’t materialize in this release. That said, this update isn’t a failure. By fixing several critical bugs from previous versions and filling in some long-overdue functionality, SwiftData in Xcode 26 has become increasingly viable for real-world apps.

Previously:

3 Comments RSS · Twitter · Mastodon


Leaving SwiftData & interop aside, Core Data being mature enough, I really wonder, what is currently missing, and would that be worth the risk of them touching something and breaking ten other things in the process, as modern Apple always does?

And about SwiftData interop, my guess is that either nobody at Apple uses it, or it's a tiny project on some SwiftUI crapola that nobody in there cares about.


Had to make a change to a Core Data model yesterday. First time in years and was shocked to see Apple removed the data model graph view from Xcode. I found that view very helpful in visually seeing the data graph, especially when inheriting projects and such. Not sure why they would do that.


Anything old, no matter how useful it may be to developers Apple just doesn’t want to maintain. Even if it works and they don’t have to really do anything to “maintain it”. They want it gone. It feels like a bunch of kids got put in charge and anything that came before them is “legacy”…
It’s like they are doing it purely for the glory. They want the credit for the new shiny. You can’t shine shit though.

they seem to be too ambitious for their own good. Almost everything they roll out as a replacement to what they seek to get rid of is inferior.

After i finish my big project (i’m too deep into it to walk away from it) my next app will be written in a cross platform framework..not sure which one yet but i want to be able to deploy to Windows and/or Android.

Can’t spend two years working on a high quality app with Apple technologies when they want to deprecate 70% of the shit I’m using halfway through. We don’t trust them.

Leave a Comment