Skip to content

Commit 7e074e4

Browse files
committed
Merge branch 'master' of github.com:alexhillc/AXStateButton
2 parents 86b972e + 1fffdb9 commit 7e074e4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ You can also adjust the animation duration of your state transitions:
4343
button.controlStateAnimationDuration = 0.1;
4444
```
4545

46+
On top of that, you can change the timing function used when animating control state changes:
47+
```objc
48+
button.controlStateAnimationTimingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
49+
```
50+
4651
Or, you can disable animations all together:
4752
```objc
4853
button.animateControlStateChanges = NO;

0 commit comments

Comments
 (0)