79396130

Date: 2025-01-29 08:43:14
Score: 2.5
Natty:
Report link

The solution as suggested by @workingdogsupportUkraine and confirmed by Apple is to make the relationships optional.

Like this:

@Model
class Model2 {
    var name: String
    var model1: Model1?
    ...
}

@Model
class Model3 {
    var name: String
    var model2: Model2?
    ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @workingdogsupportUkraine
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: The-Wolf