Skip to content
An Xcode9+ Extension which make CodingKeys automatically.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Codable provide a command can disable key sorting May 11, 2018
TrickerX.xcodeproj provide a command can disable key sorting May 11, 2018
TrickerX add TrickerX dmg Nov 27, 2017
TrickerXTests support custom key Dec 7, 2017
app
fastlane update new dmg version May 11, 2018
.gitignore add .gitignore Dec 7, 2017
LICENSE add MIT License Nov 27, 2017
README.md Update README.md Mar 5, 2018
codable.gif

README.md

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

License

MIT

You can’t perform that action at this time.