(Alpha v0.0.6)
A swift model generator like the Objective-C JSONAccelerator. Formats and generates models for the given JSON and also breaks them into files making it easy to manage and share between several models.
The models that are generated depend on JSON object mapping libraries, currently the model can be generated to depend on any of the below mentioned mapping libraries:
- SwiftyJSON
- Hearst-DD/ObjectMapper (Contributed by: brendan09)
Currently, the pattern is very similar to its Objective-C counterpart. It generates classes with following properties.
- Initalize with
JSON
(SwiftyJSON or ObjectMapper) - Initalize with
AnyObject
- Optional
NSCoding
compliance. - Convert object to
NSDictionary
Simple configurable interface for generation of file
Each class in the JSON is generated as a file.
- Handle blank array a bit better.
- Better User Interface and icon.
- Generate both
struct
andclass
. - Support for further JSON object modelling libraries.
- Add tests and integrate with Travis CI.
- Create a Xcode plugin and a command line executor.
Any suggestions regarding code quality of the app, generated code's quaility, Swift related improvements and pull requests are all very welcome.