|ReleasedLast Release||May 2017|
Maintained by Yu Wang.
WYMaterialButton implemented Material Design on iOS and add more dynamic motions, allowing iOS buttons to be more responsive and interactive.
git clone https://github.com/yuwang17/WYMaterialButton.git
WYMaterialButton related files into your own project, and install facebook’s POP via cocoapods
Then import the module in your file
If you’re Objective-C user, please include the header file
UIButton in the Storyboard of your project.
Subclass the UIbutton as
WYMaterialButton in identity inspector.
For most cases,
Material Color is the only property you need to set. Leave others as default.
Pulse Enable enable defautly, which control the bounce effect.
Touch Location Enable enabled defautly, WYMaterialButton tracks your touch location and generate a ripple animation upon that. You can disable to always center the ripple effect on the button.
Material Effect Percent speicifies the percentage of area of the button will have material effect when being pressed. Default to
You can of course access all these properties and more by using codes. For example:
myButton.materialColor = .blue
git clone https://github.com/yuwang17/WYMaterialButton.git cd WYMaterialButton/Example
Ctrl + R
POP: Facebook’s animation framework for simulating the bounce effect.
Material Design: animation idea and effects come from Google’s material design concept.
WYMaterialButton is available under the MIT License, see LICENSE for more infomation.