This project is an implementation of a Dribbble shot.
To run the example project, clone the repo, and run pod install
from the Example directory first.
RGSDotGridView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RGSDotGridView"
- 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.
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!
RGSDotGridView is available under the MIT license. See the LICENSE file for more info.