Skip to content

insanoid/SwiftyJSONAccelerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 1, 2022
af702ae · Nov 1, 2022
Oct 31, 2022
Oct 31, 2022
Jul 25, 2019
Oct 31, 2022
Oct 31, 2022
Oct 31, 2022
Oct 31, 2022
Dec 28, 2016
Oct 31, 2022
Jul 25, 2019
Aug 3, 2019
Aug 6, 2019
Sep 23, 2019
Sep 23, 2019
Oct 19, 2022
Oct 25, 2022
Aug 3, 2019
Aug 3, 2019
Nov 1, 2022
Sep 23, 2019
Aug 7, 2019

Repository files navigation

Logo

SwiftyJSONAccelerator - MacOS app Codeable Model file Generator For Swift 5

Build Status codecov

Installing & Building

  • Building:

    pod install
    

    You will also need to install SwiftFormat with brew install swiftformat and SwiftLint with brew install swiftlint.

  • Download dmg: Download the .app (v2.2.0)

Common Issues

  • SwiftyJSONAccelerator can't be opened because Apple cannot check it for malicious software.: Run the following command xattr -d com.apple.quarantine <app-path>.

Features

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 Swift's inbuilt Codeable feature making encoding and decoding objects a thing of the past.
  • Allows to opt for either optional or non-optional variables.
  • Allows an array of a certain object type with different properties to be merged into a single model with all properties.
  • Click Load folder with JSON files + Config to generate all possible models for given folder with JSON files, note this needs a .config.json as this uses the CLI logic internally.

Contributions and Requests

Any suggestions regarding code quality of the app, generated code's quality, Swift related improvements and pull requests are all very welcome. Please make sure you submit the pull request to the next release branch and not the master branch.