mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Reverse phase
This commit is contained in:
parent
2acced0f95
commit
45e62aaf56
@ -274,7 +274,11 @@ final class SoftwareGradientBackgroundNode: ASDisplayNode, GradientBackgroundNod
|
||||
}
|
||||
|
||||
public func animateEvent(transition: ContainedViewLayoutTransition) {
|
||||
self.phase = self.phase + 1
|
||||
if self.phase == 0 {
|
||||
self.phase = 7
|
||||
} else {
|
||||
self.phase = self.phase - 1
|
||||
}
|
||||
if let size = self.validLayout {
|
||||
self.updateLayout(size: size, transition: transition)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user