fix:iOS view blurry after 3D animation

This commit is contained in:
刘涛 2020-11-03 17:34:27 +08:00 committed by osborn
parent c702f546ee
commit c9a9cc3227

View File

@ -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 {