Creating a "wrapper" AppEntity worked for me. In OP's example, this would be something like:
struct HabitatAppEntity: AppEntity, Identifiable {
let id = UUID()
let habitat: Habit
static var defaultQuery = HabitEntityQuery()
static var typeDisplayRepresentation: TypeDisplayRepresentation = "Hábito"
var displayRepresentation: DisplayRepresentation {
DisplayRepresentation(title: "\(habitat.nombre)")
}
}
Xcode 16 Beta 3 seems to work as intended, so hopefully this workaround isn't required for too long :)
Topic:
Machine Learning & AI
SubTopic:
General
Tags: