motion-grid-overlay
Simple grid overlay UIView subclass
Usage
= Motion::GridOverlayView.alloc.initWithFrame(target_view.bounds)
.x_lines = 3 # defaults to 2
.y_lines = 3 # defaults to 2
.stroke_color = UIColor.redColor # defaults to UIColor.grayColor
.stroke_width = 2.0 # defaults to 1.0
.hide
.show
.toggle
target_view.addSubview()
Setup
Add this line to your application's Gemfile:
gem 'motion-grid-overlay'
And then execute:
$ bundle
Or install it yourself as:
$ gem install motion-grid-overlay
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request