Custom keys
MaxHasADHD opened this issue · 1 comments
MaxHasADHD commented
Is it possible to add support for custom keys? In CloudKit I have a property like "archived" but I'd want to define it as let isArchived: Bool
insidegui commented
Doesn't it work with the regular Codable mechanism of customizing keys?
struct MyThing: Codable {
let isArchived: Bool
enum CodingKeys: String, CodingKey {
case isArchived = "archived"
}
}