From c9a9cc32270081f725d0c2111a83dc69216f0d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B6=9B?= Date: Tue, 3 Nov 2020 17:34:27 +0800 Subject: [PATCH] fix:iOS view blurry after 3D animation --- doric-iOS/Pod/Classes/Shader/DoricViewNode.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m index f58d209d..ff47a550 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m @@ -173,6 +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.transform = transform3D; } } else {