mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Merge branch 'beta'
This commit is contained in:
commit
157a78928b
@ -284,6 +284,8 @@ private final class AuthDataTransferSplashScreenNode: ViewControllerTracingNode
|
||||
updateInHierarchy = { [weak self] value in
|
||||
if value {
|
||||
self?.animationNode?.play()
|
||||
} else {
|
||||
self?.animationNode?.reset()
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -354,6 +356,11 @@ private final class AuthDataTransferSplashScreenNode: ViewControllerTracingNode
|
||||
contentY += iconSize.height + iconSpacing
|
||||
if let animationNode = self.animationNode {
|
||||
transition.updateFrameAdditive(node: animationNode, frame: iconFrame)
|
||||
if iconFrame.minY < 0.0 {
|
||||
transition.updateAlpha(node: animationNode, alpha: 0.0)
|
||||
} else {
|
||||
transition.updateAlpha(node: animationNode, alpha: 1.0)
|
||||
}
|
||||
}
|
||||
|
||||
let titleFrame = CGRect(origin: CGPoint(x: floor((layout.size.width - titleSize.width) / 2.0), y: contentY), size: titleSize)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user