mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Attachment menu improvements
This commit is contained in:
@@ -127,6 +127,7 @@ public class ImageNode: ASDisplayNode {
|
||||
private var first = true
|
||||
private let enableEmpty: Bool
|
||||
public var enableAnimatedTransition: Bool
|
||||
public var animateFirstTransition = true
|
||||
|
||||
private let _contentReady = Promise<Bool>()
|
||||
private var didSetReady: Bool = false
|
||||
@@ -166,7 +167,7 @@ public class ImageNode: ASDisplayNode {
|
||||
if strongSelf.first && next != nil {
|
||||
strongSelf.first = false
|
||||
animate = false
|
||||
if strongSelf.isNodeLoaded {
|
||||
if strongSelf.isNodeLoaded && strongSelf.animateFirstTransition {
|
||||
strongSelf.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.18)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user