An Xcode9+ Extension which make CodingKeys automatically.
- Download the installation package I provide, or you can download project and build it yourself.
- Open the App you have installed
- Launch Xcode -> Open
Make CodingKey
File -> Editor -> Codable -> Make CodingKeys (PS: If you need, you can bind the shortcut key for this :]
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"
}
}
Welcome :]
MIT