mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -82,6 +82,7 @@ public final class NavigationContainer: ASDisplayNode, UIGestureRecognizerDelega
|
||||
public private(set) var isReady: Bool = false
|
||||
public var isReadyUpdated: (() -> Void)?
|
||||
public var controllerRemoved: (ViewController) -> Void
|
||||
public var requestFilterController: (ViewController) -> Void = { _ in }
|
||||
public var keyboardViewManager: KeyboardViewManager? {
|
||||
didSet {
|
||||
}
|
||||
@@ -118,6 +119,8 @@ public final class NavigationContainer: ASDisplayNode, UIGestureRecognizerDelega
|
||||
var statusBarStyle: StatusBarStyle = .Ignore
|
||||
var statusBarStyleUpdated: ((ContainedViewLayoutTransition) -> Void)?
|
||||
|
||||
|
||||
|
||||
private var panRecognizer: InteractiveTransitionGestureRecognizer?
|
||||
|
||||
public init(isFlat: Bool, controllerRemoved: @escaping (ViewController) -> Void) {
|
||||
@@ -211,7 +214,10 @@ public final class NavigationContainer: ASDisplayNode, UIGestureRecognizerDelega
|
||||
let topController = self.controllers[self.controllers.count - 1]
|
||||
let bottomController = self.controllers[self.controllers.count - 2]
|
||||
|
||||
if !topController.attemptNavigation({
|
||||
if !topController.attemptNavigation({ [weak self, weak topController] in
|
||||
if let self, let topController {
|
||||
self.requestFilterController(topController)
|
||||
}
|
||||
}) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user