Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 1.58 KB

swift_data.md

File metadata and controls

32 lines (17 loc) · 1.58 KB

SwiftData

WWDC23

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 models can manage storage outside to the database.

How do you perform a SwiftData operation in the background?

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

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.

Michael Tsai roundup