I just fixed this issue.
You need to go back to your @model & make init the variables directly.
var name: String
var quantity: Double?
init(name: String = "", quantity: Double? = nil) {
self.name = name
self.quantity = quantity
}
//See how i set the `name: String = ""` . You need to do it for all values.
//Use optionals when you need te var to be empty or have default vals.