diff --git a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m index f8a2d888..40264dcd 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m @@ -30,7 +30,7 @@ @interface DoricImageView : YYAnimatedImageView @end @implementation DoricImageView -- (void)displayLayer:(CALayer *)layer { +- (void)displayLayer:(CALXayer *)layer { if (@available(iOS 14.0, *)) { if (self.isAnimating) { [super displayLayer:layer]; diff --git a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m index ff47a550..5729fae2 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m @@ -173,8 +173,8 @@ - (void)transformProperties { transform3D = CATransform3DRotate(transform3D, (self.rotationY.floatValue ?: 0) * M_PI, 0, 1, 0); } if (!CATransform3DEqualToTransform(transform3D, self.view.layer.transform)) { - self.view.layer.shouldRasterize=TRUE; - self.view.layer.rasterizationScale=[[UIScreen mainScreen] scale]; + self.view.layer.shouldRasterize = TRUE; + self.view.layer.rasterizationScale = [[UIScreen mainScreen] scale]; self.view.layer.transform = transform3D; } } else { @@ -553,8 +553,8 @@ - (void)doAnimation:(id)params withPromise:(DoricPromise *)promise { } animation.removedOnCompletion = NO; animation.fillMode = kCAFillModeForwards; - if(animation.duration==0){ - animation.duration=FLT_MIN; + if (animation.duration == 0) { + animation.duration = FLT_MIN; } [self.view.layer addAnimation:animation forKey:nil]; }