Conforming your SwiftData objects to Codable

preview_player
Показать описание

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.

Рекомендации по теме
Комментарии
Автор

Just spent half of the day to find a solution. I hate videos, more prefer articles and it costs me 4 hours. Thanks for sharing this!

ДимаМейду
Автор

Excelente video, muchas gracias por compartir información valiosa!!✌✌

jairoalexanderlaurenteceli
Автор

This video is magic! You got a new subscriber! Thank you for sharing your knowledge! 😎

alin.cht.
Автор

I wonder if this is working for you now. I'm getting the error "Return from initializer without initializing all stored properties" if I don't set movie in required init(from:)

nikandrii
Автор

Hey Donny, I really like every content that you create, from blog posts to books, Youtube Videos to Social media posts. The only suggestion that I could give is maybe you can reduce the volume of the music or remove it totally. Much Love ❤

AndromedaOrion
welcome to shbcf.ru