CloudKitCodable icon indicating copy to clipboard operation
CloudKitCodable copied to clipboard

Does CloudKitCodable support relations?

Open legoesbenr opened this issue 9 months ago • 1 comments

This is probably more a discussion than an issue.

How does the library handle relations.

Say Person-struct has a property var jobs: [Job] (which also has a corresponding record in CloudKit).

Would the encoding/decoding be able to handle this too?

legoesbenr avatar Apr 14 '25 18:04 legoesbenr

There's no explicit support for relationships between models, you'd have to handle it yourself. I personally have never used CloudKit relationships in production with or without this library, so unfortunately I don't have any recommendations for best practices.

insidegui avatar Apr 14 '25 18:04 insidegui