Skip to content

EdSancha/EDSTouchButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EDSTouchButton

Build Status Version License Platform

Animated button based on Rippler using Pop.

Demo

Demo

Installation

To run the example project, clone the repo, and run pod install from the Example directory first. Another way to run the example project is running pod try EDSTouchButton in terminal.

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

pod "EDSTouchButton"

Usage

To use the button in your project:

EDSTouchButton *button = [[EDSTouchButton alloc] initWithFrame:CGRectMake(20, 100, CGRectGetWidth(self.view.frame) - 40, 44)
                                                    buttonType:EDSTouchButtonTypeDefault];
button.touchDiameter = 20;
button.title = @"Programatically created button";
button.titleColor = [UIColor blueColor];
button.touchColor = [[UIColor blueColor] colorWithAlphaComponent:0.5];
button.backgroundColor = [[UIColor blueColor] colorWithAlphaComponent:0.3];
button.contentEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 25);
[button addTarget:self
           action:@selector(didSelectButton)
 forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:button];

You can also add it on your storyboard and edit its properties directly in the Attributes Inspector.

To do

  • Add simple tests.
  • Add UIImageView to button.
  • Check why importing the files directly triggers IB_DESIGNABLE but not using PODS.

Author

Eduardo Diaz Sancha, edsancha@gmail.com

License

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

About

Animated Button mimicking Material Design animation using Pop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published