Closed camdub closed 4 years ago
Thanks to Swift 4 you don't need to conform to Embeddable
anymore, if you embed a struct in your model and it's Codable
, that'll work.
Only Reference
works for references. You can still nest another model, but that'll make a copy of that model and embed it there. It's possible to re-add this feature, but it would break your models if those referenced models (in-directly) reference yours.
Some of the documentation I've seen shows an
Embeddable
protocol that seems not to exist anymore. Is it possible to embed classes or can onlyReference
be used now?