Awesome Open Source
Awesome Open Source

ZFRippleButton

iOS Custom UIButton effect inspired by Google Material Design written in Swift

Usage

Set the UIButton class in Nib to ZFRippleButton or create it programmatically.

Options

rippleOverBounds indicate that ripple should draw outsise the bounds or not

trackTouchLocation indicate that ripple should show from the touch location or not

shadowRippleEnable indicate that it will show additional shadow when you click or not

touchUpAnimationTime is time interval of touch up animation

and you can set the color of ripple using rippleColor and rippleBackgroundColor

Requirements

  • iOS >= 8.0

Author

Amornchai Kanokpullwad, [email protected]

License

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


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
swift (7,535
ios-swift (135
uibutton (25
google-material (23

Find Open Source By Browsing 7,000 Topics Across 59 Categories