diff --git a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m index a86489a3..f58d209d 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m @@ -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]; }