Fix tab switch animation

This commit is contained in:
Ilya Laktyushin 2024-10-24 17:55:33 +04:00
parent c116967c30
commit b1d8f91c8a
2 changed files with 3 additions and 3 deletions

View File

@ -340,8 +340,8 @@ open class TabBarControllerImpl: ViewController, TabBarController {
public func updateBackgroundAlpha(_ alpha: CGFloat, transition: ContainedViewLayoutTransition) { public func updateBackgroundAlpha(_ alpha: CGFloat, transition: ContainedViewLayoutTransition) {
let alpha = max(0.0, min(1.0, alpha)) let alpha = max(0.0, min(1.0, alpha))
transition.updateAlpha(node: self.tabBarControllerNode.tabBarNode.backgroundNode, alpha: alpha, delay: 0.15) transition.updateAlpha(node: self.tabBarControllerNode.tabBarNode.backgroundNode, alpha: alpha, delay: 0.1)
transition.updateAlpha(node: self.tabBarControllerNode.tabBarNode.separatorNode, alpha: alpha, delay: 0.15) transition.updateAlpha(node: self.tabBarControllerNode.tabBarNode.separatorNode, alpha: alpha, delay: 0.1)
} }
private func updateSelectedIndex(animated: Bool = false) { private func updateSelectedIndex(animated: Bool = false) {

View File

@ -12709,7 +12709,7 @@ public final class PeerInfoScreenImpl: ViewController, PeerInfoScreen, KeyShortc
self.controllerNode.resetHeaderExpansion() self.controllerNode.resetHeaderExpansion()
} }
} else { } else {
self.controllerNode.updateNavigation(transition: .immediate, additive: false, animateHeader: false) self.controllerNode.updateNavigation(transition: .animated(duration: 0.15, curve: .easeInOut), additive: false, animateHeader: false)
} }
} }
} }