From 0e33c20bf030f1b329f79cebd5d4fb21f2575d96 Mon Sep 17 00:00:00 2001 From: babaevmm Date: Thu, 9 Apr 2026 22:54:48 +0300 Subject: [PATCH] add shouldRasterize true for animations commit_hash:f38e387e47d0e8a26113dad0dbdb9a6274cc514c --- .../DetachableAnimationBlock+UIViewRenderableBlock.swift | 4 ++++ 1 file changed, 4 insertions(+) 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 }