TrickerX
TrickerX copied to clipboard
An Xcode9+ Extension which make CodingKeys automatically.
TrickerX
An Xcode9+ Extension which make CodingKeys automatically.
How to use
- 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 :]
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