mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
UI improvements
This commit is contained in:
@@ -1274,6 +1274,12 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
completion()
|
||||
}
|
||||
|
||||
public func replaceControllers(controllers: [UIViewController], animated: Bool, options: NavigationAnimationOptions = [], ready: ValuePromise<Bool>? = nil, completion: @escaping () -> Void = {}) {
|
||||
ready?.set(true)
|
||||
self.setViewControllers(controllers, animated: animated)
|
||||
completion()
|
||||
}
|
||||
|
||||
public func replaceAllButRootController(_ controller: ViewController, animated: Bool, animationOptions: NavigationAnimationOptions = [], ready: ValuePromise<Bool>? = nil, completion: @escaping () -> Void = {}) {
|
||||
ready?.set(true)
|
||||
var controllers = self.viewControllers
|
||||
|
||||
Reference in New Issue
Block a user