Reverse phase

This commit is contained in:
Ali 2021-05-08 01:02:07 +04:00
parent 2acced0f95
commit 45e62aaf56

View File

@ -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)
}