Fix search tabs appearance animation

This commit is contained in:
Ilya Laktyushin
2020-09-28 21:44:32 +04:00
parent 045cd2cda0
commit e4064976eb
4 changed files with 48 additions and 16 deletions

View File

@@ -1215,7 +1215,7 @@ open class NavigationBar: ASDisplayNode {
if self.secondaryContentNode !== secondaryContentNode {
if let previous = self.secondaryContentNode, previous.supernode === self.clippingNode {
if animated {
previous.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak previous] finished in
previous.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.2, removeOnCompletion: false, completion: { [weak previous] finished in
if finished {
previous?.removeFromSupernode()
previous?.layer.removeAllAnimations()