An Xcode9+ Extension which make CodingKeys automatically.
An Xcode9+ Extension which make CodingKeys automatically.
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