mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[WIP] Video chats
This commit is contained in:
@@ -471,7 +471,12 @@ public struct ComponentTransition {
|
||||
layer.removeAnimation(forKey: "opacity")
|
||||
completion?(true)
|
||||
case .curve:
|
||||
let previousAlpha = layer.presentation()?.opacity ?? layer.opacity
|
||||
let previousAlpha: Float
|
||||
if layer.animation(forKey: "opacity") != nil {
|
||||
previousAlpha = layer.presentation()?.opacity ?? layer.opacity
|
||||
} else {
|
||||
previousAlpha = layer.opacity
|
||||
}
|
||||
layer.opacity = Float(alpha)
|
||||
self.animateAlpha(layer: layer, from: CGFloat(previousAlpha), to: alpha, delay: delay, completion: completion)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user