Skip to content

Commit

Permalink
Merge pull request facebook#372 from suvarshibhadra/animationOptionsC…
Browse files Browse the repository at this point in the history
…hange

Add animation options to CKComponentBoundsAnimation
  • Loading branch information
adamjernst committed Sep 10, 2015
2 parents df5f825 + 2b6b133 commit 5ba4694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ComponentKit/Core/CKComponentBoundsAnimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct CKComponentBoundsAnimation {
NSTimeInterval duration;
NSTimeInterval delay;
CKComponentBoundsAnimationMode mode;
UIViewAnimationOptions options;

/** Ignored unless mode is Spring, in which case it specifies the damping ratio passed to UIKit. */
CGFloat springDampingRatio;
Expand Down
4 changes: 2 additions & 2 deletions ComponentKit/Core/CKComponentBoundsAnimation.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ void CKComponentBoundsAnimationApply(const CKComponentBoundsAnimation &animation
delay:animation.delay
usingSpringWithDamping:animation.springDampingRatio
initialSpringVelocity:animation.springInitialVelocity
options:0
options:animation.options
animations:animations
completion:completion];
} else {
[UIView animateWithDuration:animation.duration
delay:animation.delay
options:0
options:animation.options
animations:animations
completion:completion];
}
Expand Down

0 comments on commit 5ba4694

Please sign in to comment.