Closed zzz2016 closed 7 years ago
Just click the main button, and then do it again and again and over again.
The memory should not increase.
As the picture shown.
Official demo.
The code below:
+(instancetype)animationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration damping:(double)damping velocity:(double)velocity fromValue:(double)fromValue toValue:(double)toValue { YALSpringAnimation *animation = [self.class animationWithKeyPath:keyPath]; ** animation.removedOnCompletion = NO; animation.fillMode = kCAFillModeForwards; ** animation.duration = duration; animation.values = [self animationValuesFromValue:fromValue toValue:toValue withDamping:damping andVelocity:velocity]; return animation; }
The animation should be removed when finished.
Problem solved in v1.1.2
Report a bug
What did you do?
Just click the main button, and then do it again and again and over again.
What did you expect to happen?
The memory should not increase.
What happened instead?
As the picture shown.
Your Environment
Project that demonstrates the bug
Official demo.
My suggestion
The code below:
The animation should be removed when finished.