You can try this:
enum Kind: String, Codable, CaseIterable, Identifiable {
case credit = "Credit"
var id:String { rawValue }
}
If that not work. I think you need to use SchemaMigrationPlan and translate model to other version model.
There is a example for SchemaMigrationPlan. example.
I hope these will be useful to you.
Post
Replies
Boosts
Views
Activity
This is a repeated question, and it has been answered in the link below.
Another question