Optimizations

This commit is contained in:
Ali
2023-02-21 22:13:21 +04:00
parent fa93c6d791
commit 1bef1f55e4
4 changed files with 7 additions and 5 deletions

View File

@@ -172,7 +172,7 @@ public final class MultilineTextWithEntitiesComponent: Component {
self.textNode.longTapAttributeAction = component.longTapAction
if case let .curve(duration, _) = transition.animation, let previousText = previousText, previousText != attributedString.string {
if let snapshotView = self.snapshotView(afterScreenUpdates: false) {
if let snapshotView = self.snapshotContentTree() {
snapshotView.center = self.center
self.superview?.addSubview(snapshotView)