struct LabelInfo: OptionSet, DefaultsSerializable {
let rawValue: Int
static let number = LabelInfo(rawValue: 1 << 0)
static let person = LabelInfo(rawValue: 1 << 1)
static let all: LabelInfo = [.number, .person]
static let none: LabelInfo = []
}
it works fine as DefaultsSerializable
it also works fine as Codable
however if I try to have both Codable && DefaultsSerializable
I have an OptionSet
it works fine as DefaultsSerializable
it also works fine as Codable
however if I try to have both Codable && DefaultsSerializable
struct LabelInfo: OptionSet, DefaultsSerializable, Codable {...}
is there a way around this?
thank you