mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -268,16 +268,20 @@ public final class SearchDisplayController {
|
||||
searchBar?.removeFromSupernode()
|
||||
})
|
||||
} else {
|
||||
searchBar.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak searchBar] _ in
|
||||
searchBar?.removeFromSupernode()
|
||||
searchBar.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak searchBar] finished in
|
||||
if finished {
|
||||
searchBar?.removeFromSupernode()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let backgroundNode = self.backgroundNode
|
||||
let contentNode = self.contentNode
|
||||
if animated {
|
||||
backgroundNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak backgroundNode] _ in
|
||||
backgroundNode?.removeFromSupernode()
|
||||
backgroundNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak backgroundNode] finished in
|
||||
if finished {
|
||||
backgroundNode?.removeFromSupernode()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
backgroundNode.removeFromSupernode()
|
||||
|
||||
Reference in New Issue
Block a user