Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoonooz/ZFRippleButton
Custom UIButton effect inspired by Google Material Design
https://github.com/zoonooz/ZFRippleButton
custom-uibutton google-material ios-swift uibutton
Last synced: 7 days ago
JSON representation
Custom UIButton effect inspired by Google Material Design
- Host: GitHub
- URL: https://github.com/zoonooz/ZFRippleButton
- Owner: zoonooz
- License: mit
- Created: 2014-06-27T17:18:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T05:19:04.000Z (over 5 years ago)
- Last Synced: 2024-11-30T21:02:55.707Z (12 days ago)
- Topics: custom-uibutton, google-material, ios-swift, uibutton
- Language: Swift
- Homepage:
- Size: 512 KB
- Stars: 1,407
- Watchers: 33
- Forks: 110
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - ZFRippleButton - Custom UIButton effect inspired by Google Material Design (UI / Button)
- awesome-ios-star - ZFRippleButton - Custom UIButton effect inspired by Google Material Design (UI / Button)
- awesome-swift-cn - ZFRippleButton - A ripple button animation. (Libs / UI)
README
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.