0.0
No commit activity in last 3 years
No release in over 3 years
Swift-Boiler is a tool developed for iOS developers to speed up the process of implementing views, models, controllers, and many other common patterns found in an iOS project. Inspired by the swift syntax and the simplicity of the Rails generate tool, Swift-Boiler is a simple to use boiler plate code generator that will get you up running in no time.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 5.0
~> 10.0

Runtime

~> 1.0.3
 Project Readme

Swift-Boiler

Swift-Boiler is a tool developed for iOS developers to speed up the process of implementing views, models, controllers, and many other common patterns found in an iOS project. Inspired by the swift syntax and the simplicity of the Rails generate tool, Swift-Boiler is a simple to use boiler plate code generator that will get you up running in no time.

Installation

Install Swift-Boiler:

$ gem install swift-boiler

Usage

Commands follow this specific syntax:

$ swift-boil --help
$ swift-boil v MyView mainlabel:UILabel firstView:UIView secondView:CustomView
$ swift-boil view MyView -p mainlabel:UILabel firstView:UIView secondView:CustomView
To use a custom template use:
$ swift-boil -t /Desktop/mytemplate.mustache MyView toplabel:UILabel bottomlabel:UILabel
$ swift-boil -t /Desktop/mytemplate.mustache MyView -p toplabel:UILabel bottomlabel:UILabel

Commands:

  • view or v: command to generate the boiler plate code for a view
  • model or m: command to generate the boiler plate code for a model
  • controller or c: command to generate the boiler plate code for a controller
  • tableViewCell or tvc: command to generate the boiler plate code for a table view cell
  • singleton or s: command to generate the boiler plate code for a singleton

Options:

  • --help or -h: shows usage details
  • --protocol or -p: it indicates that Swift-Boiler should add a delegate or data source to the class being generated
  • --template or -t: allows user to specify a custom template to be used to generate code

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at our Bug Section.

License

The gem is available as open source under the terms of the MIT License.