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
}
}
I understand the reason behind this limitation but it is quite annoying / cumbersome when trying to integrate into existing APIs that use 「 description 」