Skip to content
/ TrickerX Public

An Xcode9+ Extension which make CodingKeys automatically.

License

Notifications You must be signed in to change notification settings

wleii/TrickerX

Repository files navigation

TrickerX

An Xcode9+ Extension which make CodingKeys automatically.

Make CodingKeys

How to use

  1. Download the installation package I provide, or you can download project and build it yourself.
  2. Open the App you have installed
  3. Launch Xcode -> Open Make CodingKey File -> Editor -> Codable -> Make CodingKeys (PS: If you need, you can bind the shortcut key for this :]

More specific methods of use

TrickerX also support the following way to define keys, e.g.

struct CustomKey: Codable {
    // TrickerX will parsing the syntax //my_custom_key 
    private let key: String //my_custom_key
}

result

struct CustomKey: Codable {
    // TrickerX will parsing the syntax //my_custom_key 
    private let key: String 

    enum CodingKeys: String, Codable {
        case key = "my_custom_key"
    }
}

Contributes

Welcome :]

License

MIT