Skip to content

RGSSoftware/RGSDotGridView

Repository files navigation

RGSDotGridView

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.

About

An UIBbutton animating between filter and close.

Resources

License

Stars

Watchers

Forks

Packages

No packages published