-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed