mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Add gif placeholder animation
This commit is contained in:
parent
f737130751
commit
e376aa0f21
@ -64,8 +64,10 @@ final class SoftwareVideoThumbnailNode: ASDisplayNode {
|
||||
if let strongSelf = self {
|
||||
strongSelf.contents = image.cgImage
|
||||
if let placeholder = strongSelf.placeholder {
|
||||
strongSelf.placeholder = placeholder
|
||||
placeholder.removeFromSupernode()
|
||||
strongSelf.placeholder = nil
|
||||
placeholder.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.2, removeOnCompletion: false, completion: { [weak placeholder] _ in
|
||||
placeholder?.removeFromSupernode()
|
||||
})
|
||||
}
|
||||
strongSelf.ready?()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user