Skip to content

Scarafone/SwiftyJSONAccelerator

 
 

Repository files navigation

SwiftyJSONAccelerator

(Alpha v0.0.6)

Download the .app (v0.0.6)

Logo

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:

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

Preview

Simple configurable interface for generation of file

Preview

Each class in the JSON is generated as a file.

TODO

  • Handle blank array a bit better.
  • Better User Interface and icon.
  • Generate both struct and class.
  • 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.

About

JSON to Swift Model Object files Simplified

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%