I have several Swift Data types with a property of type enum. Whenever I've tried to write a predicate returning data objects only of a certain enum case, the compiler throws an error from the macro at build time. (which I don't have handy, sorry...). Is this supported? And if so, how would you write the predicate?
@Model
public final class AlbumList {
// ...
public var listType: AlbumListType
// ...
}
public enum AlbumListType: String, CaseIterable, Codable {
case listener
case dj
}
Topic:
App & System Services
SubTopic:
SwiftData
3
0
104