Conforming your SwiftData objects to Codable

Опубликовано: 24 Июль 2026
на канале: donny wals
2,164
64

Learn more about Codable: https://www.donnywals.com/category/co...

With SwiftData it's relatively easy 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. Ultimately, SwiftData is a wrapper around Core Data which means that the @Model macro will at some point generate managed objects, an object model, and more. In this post, we'll see if the @Model macro will also make it easier to use Codable with model objects.

This video is a companion for: https://www.donnywals.com/making-your...

Check out my books at: https://donnywals.com/books
See if I have any workshops planned at: https://donnywals.com/workshop
Subscribe to my newsletter here: https://donnywals.com/newsletter