mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Adjust layout
This commit is contained in:
@@ -414,6 +414,18 @@ public final class ChatListNavigationBar: Component {
|
||||
self.addSubview(headerContentView)
|
||||
}
|
||||
transition.setFrameWithAdditivePosition(view: headerContentView, frame: headerContentFrame)
|
||||
|
||||
if component.isSearchActive != (headerContentView.alpha == 0.0) {
|
||||
headerContentView.alpha = component.isSearchActive ? 0.0 : 1.0
|
||||
|
||||
if !transition.animation.isImmediate {
|
||||
if component.isSearchActive {
|
||||
headerContentView.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.14)
|
||||
} else {
|
||||
headerContentView.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.3)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if component.tabsNode !== self.tabsNode {
|
||||
|
||||
Reference in New Issue
Block a user