I had a similar problem with Beta 6, and still having it after upgrading to Beta 8. It seems that using a Boolean test against a stored enum value always fails within a #Predicate definition. I've tried to make it work both with an @Query macro and a 'let myPredicate = #Predicate { $0.someValue == myStoredEnum.someValue && ...}' statement. One other strange thing is that when I inspect one particular enum definition, the raw value shows as being of type String, when the enum is clearly designated 'enum: Int, Codable {...}
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: