Latest 0.1.2
Homepage https://github.com/RGSSoftware/RGSDotGridView
License MIT
Platforms ios 8.0
Authors

This project is an implementation of a Dribbble shot.

Version
License
Platform

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.

Latest podspec

{
    "name": "RGSDotGridView",
    "version": "0.1.2",
    "summary": "An UIBbutton animating between filter and close.",
    "description": "An UIBbutton Dribbble shot animating between filter and close.",
    "homepage": "https://github.com/RGSSoftware/RGSDotGridView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Randel Smith": "[email protected]"
    },
    "source": {
        "git": "https://github.com/RGSSoftware/RGSDotGridView.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RGSDotGridView/Classes/**/*"
}

Pin It on Pinterest

Share This