Open helje5 opened 1 year ago
If the dev didn't specify an own initialiser, the macro should generate one, similar to what Swift itself already does for structures.
E.g.:
@Model class Item: NSManagedObject { var date : Date }
Should generate:
convenience init(date: Date) { self.init() self.date = date }
The code for this is already prepared in the Model macro, needs to be finished.
If the dev didn't specify an own initialiser, the macro should generate one, similar to what Swift itself already does for structures.
E.g.:
Should generate:
The code for this is already prepared in the Model macro, needs to be finished.