Various fixes

This commit is contained in:
Ilya Laktyushin
2024-09-26 17:18:16 +04:00
parent 072c6bc3c4
commit 00516523a4
6 changed files with 46 additions and 18 deletions

View File

@@ -170,7 +170,7 @@ public final class MultilineTextWithEntitiesComponent: Component {
self.textNode.highlightAttributeAction = component.highlightAction
self.textNode.tapAttributeAction = component.tapAction
self.textNode.longTapAttributeAction = component.longTapAction
if case let .curve(duration, _) = transition.animation, let previousText = previousText, previousText != attributedString.string {
if let snapshotView = self.snapshotContentTree() {
snapshotView.center = self.center