mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 05:03:45 +00:00
Fix swipe to reply animation
This commit is contained in:
parent
ee714310e7
commit
842cab80ce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user