Skip to content

Commit 8a677fe

Browse files
committed
Added spring animation convertion.
1 parent f57e522 commit 8a677fe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

AXAnimationChain/Classes/CoreAnimation/CAAnimation+Convertable.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,10 @@ + (instancetype)animationWithBasic:(CABasicAnimation *)animation {
476476
@end
477477

478478
@implementation AXDecayAnimation (Convertable)
479+
+ (instancetype)animationWithSpring:(AXCASpringAnimation *)animation {
480+
return [self animationWithBasic:animation];
481+
}
482+
479483
+ (instancetype)animationWithBasic:(CABasicAnimation *)animation {
480484
AXDecayAnimation *decay = [AXDecayAnimation new];
481485
decay.beginTime = animation.beginTime;

0 commit comments

Comments
 (0)