insidegui/CloudKitCodable

Custom keys

MaxHasADHD opened this issue · 1 comments

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

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"
    }
}