RGSDotGridView 0.1.2

RGSDotGridView 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2016
SPMSupports SPM

Maintained by ‘Randel_G_Smith’.



  • By
  • Randel Smith

RGSDotGridView

This project is an implementation of a Dribbble shot.

iPhone 5

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

RGSDotGridView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RGSDotGridView"

Using RGSDotGridView

DotGridButton Storyboard Example

  • Add an UIView to your storyboard.
  • Change its subclass to DotGridButton.
override func viewDidLoad() {
    super.viewDidLoad()

    ...

    self.dotGridButton.layer.cornerRadius = CGRectGetWidth(self.dotGridButton.frame)/2

    ...
}

For full example please try project.

Customization

RGSDotGridView can be customized via the following classes

class DotGridView : UIView

    var dotsDiameter: Double
    var dotsColor: UIColor

    func animateFull()
    func animateClose()


class DotGridButton : UIButton

    var dotView: DotGridView!

License

RGSDotGridView is available under the MIT license. See the LICENSE file for more info.