Fix swipe to reply animation

This commit is contained in:
Ilya Laktyushin 2022-11-02 10:09:16 +03:00
parent ee714310e7
commit 842cab80ce

View File

@ -178,9 +178,10 @@ final class ChatMessageSwipeToReplyNode: ASDisplayNode {
guard !self.animatedWave else {
return
}
self.layer.animateScale(from: 0.0, to: 0.1, duration: 0.2, additive: true, completion: { [weak self] _ in
self?.layer.animateScale(from: 0.1, to: 0.0, duration: 0.15, additive: true)
self.layer.transform = CATransform3DMakeScale(1.1, 1.1, 1.0)
self.layer.animateScale(from: 1.0, to: 1.1, duration: 0.2, completion: { [weak self] _ in
self?.layer.transform = CATransform3DMakeScale(1.0, 1.0, 1.0)
self?.layer.animateScale(from: 1.1, to: 1.0, duration: 0.15)
})
self.animatedWave = true