Skip to content

Commit

Permalink
Merge branch 'master' of github.com:yuwang17/WYMaterialButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-w committed Jan 19, 2016
2 parents 3644c81 + 7a8741a commit f8d33c3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
[![License](https://img.shields.io/cocoapods/l/WYMaterialButton.svg?style=flat)](http://cocoapods.org/pods/WYMaterialButton)
[![Platform](https://img.shields.io/cocoapods/p/WYMaterialButton.svg?style=flat)](http://cocoapods.org/pods/WYMaterialButton)

#### Inspired by Google Material Design, written purely in Swift 2.0.
#### Inspired by Google Material Design, written purely in Swift 2.1.

WYMaterialButton implemented Material Design on iOS, allowing iOS buttons to be more responsive and interactive.

Integrated with [Spring](https://github.com/MengTo/Spring) animations, WYMaterialButton is super animated and programmer-friendly. All settings can be customized in storyboard inspector.


<img src="./Screenshot/animation.gif" width="375" height="667"/>
<img src="./Screenshot/animation.gif" width="375" height="272"/>

## Installation

Expand Down Expand Up @@ -51,18 +51,18 @@ If you're Objective-C user, please include the header file


## Specification
For most cases, ``Material Color`` is the only property you need to set. Leave others as default.
* For most cases, ``Material Color`` is the only property you need to set. Leave others as default.

With ``Auto Setup Color`` enabled defautly, WYMaterialButton would set background of the button same as the ''materialColor'', and set the text color to corresponding contrast color for maximing convenience for developers. If you wish the highest customization, just disable ``Auto Setup Color`` and set up the button as usual and won't hurt material effects.
* With ``Auto Setup Color`` enabled defautly, WYMaterialButton would set background of the button same as the ''materialColor'', and set the text color to corresponding contrast color for maximing convenience for developers. If you wish the highest customization, just disable ``Auto Setup Color`` and set up the button as usual and won't hurt material effects.

With ``Touch Location Enable`` enabled defautly, WYMaterialButton would track your touch location and generate a ripple animation upon that. You can disable to center the ripple effect on the button.
* With ``Touch Location Enable`` enabled defautly, WYMaterialButton would track your touch location and generate a ripple animation upon that. You can disable to center the ripple effect on the button.

``Material Effect Percent`` speicifies what percentage of area of the button will have material effect when being pressing. It default to 0.8.
* ``Material Effect Percent`` speicifies what percentage of area of the button will have material effect when being pressing. It default to 0.8.

You can of course access all these properties and more by using codes. For example:
```swift
myButton.materialColor = UIColor.blueColor()
```
* You can of course access all these properties and more by using codes. For example:
```swift
myButton.materialColor = UIColor.blueColor()
```


## Demo
Expand All @@ -89,5 +89,5 @@ open WYMaterialButton.xcworkspace

[Material Design](https://www.google.com/design/spec/material-design/introduction.html): animation idea and effects come from Google's material design concept.

## LICENSE
## License
WYMaterialButton is available under the [MIT License](LICENSE), see LICENSE for more infomation.

0 comments on commit f8d33c3

Please sign in to comment.