79517905

Date: 2025-03-18 15:14:08
Score: 1.5
Natty:
Report link

When the Model Context is building, make sure CalData is in schema or Swift will not be able to find it

  private var models: [any PersistentModel.Type] = [
        CalData.self, CalDataVal.self,
    ]

    lazy public var container: ModelContainer = {
        let schema = Schema(models)
        //...
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When the
  • Low reputation (1):
Posted by: Brandon Guerra