WYMaterialButton alternatives and similar libraries
Based on the "Button" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of WYMaterialButton or a related project?
Inspired by Google Material Design, written purely in Swift 3.
WYMaterialButton implemented Material Design on iOS and add more dynamic motions, allowing iOS buttons to be more responsive and interactive.
WYMaterialButton is available through CocoaPods.
To install via CocoaPods add this lines to your Podfile
use_frameworks! pod "WYMaterialButton"
Note: Due to CocoaPods/CocoaPods#4420 issue there is problem with compiling project with Xcode 7.1 and CocoaPods v0.39.0. However there is a temporary workaround for this: Add next lines to the end of your Podfile
post_install do |installer| `find Pods -regex 'Pods/pop.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)pop\\/\\(.*\\)\\(>\\)/\\"\\2\\"/'` end
Or download the git repository
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
1) Add a
UIButton in the Storyboard of your project.
2) Subclass the UIbutton as
WYMaterialButton in identity inspector.
3) Select a color as
Material Color, the first row in attribute inspector, and let WYMaterialButton do everything else for you. You can also do other setting as well for further customizations.
For most cases,
Material Coloris the only property you need to set. Leave others as default.
Pulse Enableenable defautly, which control the bounce effect.
Touch Location Enableenabled 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 Percentspeicifies 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
1) Download the repository
git clone https://github.com/yuwang17/WYMaterialButton.git cd WYMaterialButton/Example
2) Open the workspace
3) Compile and run the app in simulator
- Under Xcode, press
Ctrl + R
Supported OS & SDK Versions
- Xcode 7
- iOS 7
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](LICENSE), see LICENSE for more infomation.
*Note that all licence references and agreements mentioned in the WYMaterialButton README section above are relevant to that project's source code only.