Closed MaxHasADHD closed 11 months ago
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"
}
}
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