diff --git a/client/ios/LayoutKit/LayoutKit/UI/Blocks/DetachableAnimationBlock+UIViewRenderableBlock.swift b/client/ios/LayoutKit/LayoutKit/UI/Blocks/DetachableAnimationBlock+UIViewRenderableBlock.swift index b2460f2cf..7a9cef2c3 100644 --- a/client/ios/LayoutKit/LayoutKit/UI/Blocks/DetachableAnimationBlock+UIViewRenderableBlock.swift +++ b/client/ios/LayoutKit/LayoutKit/UI/Blocks/DetachableAnimationBlock+UIViewRenderableBlock.swift @@ -170,6 +170,7 @@ final class DetachableAnimationBlockView: BlockView, DelayedVisibilityActionView childView.frame = convertFrame(to: container) self.childView = nil container.addSubview(childView) + childView.layer.shouldRasterize = true childView.setInitialParamsAndAnimate( animations: animationOut?.map { animation in if animation.kind == .fade { @@ -178,6 +179,7 @@ final class DetachableAnimationBlockView: BlockView, DelayedVisibilityActionView return animation }, completion: { + childView.layer.shouldRasterize = false childView.removeFromSuperview() } ) @@ -194,9 +196,11 @@ final class DetachableAnimationBlockView: BlockView, DelayedVisibilityActionView let item = DispatchWorkItem { [weak self] in childView.isHidden = false + childView.layer.shouldRasterize = true childView.setInitialParamsAndAnimate( animations: animationIn.withDelay(-minDelay), completion: { [weak self] in + childView.layer.shouldRasterize = false self?.queuedAnimation = nil self?.animationIn = nil }