TIL

SwiftData

WWDC23

SwiftData Saving Changes

One difference from Core Data is that SwiftData will save a changed context automatically. Anytime you insert a new object, change, or delete an object the context needs saving.

SwiftData: Store Image Data, but Actually Outside the Database - Christian Tietze

SwiftData models can manage storage outside to the database.

SwiftData Background Tasks

How do you perform a SwiftData operation in the background?

SwiftData Fetching An Existing Object

How do you find an existing SwiftData model object from its persistent model identifier?

Making your SwiftData models Codable – Donny Wals

With SwiftData it’s so much easier to define model objects so it makes sense to take a look at making SwiftData models Codable to see if it’s better than Core Data.

SwiftData Issues in macOS 14 and iOS 17

Michael Tsai roundup