Update animation

This commit is contained in:
Ali
2021-04-18 13:49:22 +04:00
parent d73c4b65e0
commit 0ab87d6bbc
2 changed files with 10 additions and 13 deletions

View File

@@ -2182,9 +2182,14 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate {
let backgroundView = UIImageView(image: backgroundImage)
backgroundView.frame = self.textInputBackgroundNode.frame
guard let contentView = textInputNode.view.snapshotView(afterScreenUpdates: false) else {
//let previousTintColor = textInputNode.view.tintColor
//textInputNode.view.tintColor = .clear
guard let contentView = textInputNode.view.snapshotView(afterScreenUpdates: true) else {
//textInputNode.view.tintColor = previousTintColor
return nil
}
//textInputNode.view.tintColor = previousTintColor
contentView.frame = textInputNode.frame
return ChatMessageTransitionNode.Source.TextInput(