Post marked as solved
Post marked as solved with 1 replies, 594 views
In the code below a receive an error "A stored property cannot be named 'description'" . If I change the property "description" to "description1" the error is gone. I'am using Xcode 15b8. Anyone having the same problem
import Foundation
import SwiftData
@Model
class Category {
var name: String
var description: String
init(name: String, description: String) {
self.name = name
self.description = description
}
}