feat:iOS animation reset duration when duration is 0
This commit is contained in:
parent
662909438b
commit
cb3dfcbec8
@ -551,6 +551,9 @@ - (void)doAnimation:(id)params withPromise:(DoricPromise *)promise {
|
||||
}
|
||||
animation.removedOnCompletion = NO;
|
||||
animation.fillMode = kCAFillModeForwards;
|
||||
if(animation.duration==0){
|
||||
animation.duration=FLT_MIN;
|
||||
}
|
||||
[self.view.layer addAnimation:animation forKey:nil];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user