Translation improvements

This commit is contained in:
Ilya Laktyushin
2022-03-18 22:58:29 +04:00
parent 14eb97ef17
commit 65536651de
36 changed files with 2149 additions and 168 deletions

View File

@@ -848,6 +848,11 @@ open class NavigationController: UINavigationController, ContainableController,
}
}
if self._keepModalDismissProgress {
modalStyleOverlayTransitionFactor = 0.0
self._keepModalDismissProgress = false
}
topModalDismissProgress = max(topModalDismissProgress, modalStyleOverlayTransitionFactor)
switch layout.metrics.widthClass {
@@ -1358,6 +1363,7 @@ open class NavigationController: UINavigationController, ContainableController,
self._viewControllersPromise.set(self.viewControllers)
}
public var _keepModalDismissProgress = false
public func presentOverlay(controller: ViewController, inGlobal: Bool = false, blockInteraction: Bool = false) {
let container = NavigationOverlayContainer(controller: controller, blocksInteractionUntilReady: blockInteraction, controllerRemoved: { [weak self] controller in
guard let strongSelf = self else {
@@ -1385,6 +1391,7 @@ open class NavigationController: UINavigationController, ContainableController,
}
}
}
strongSelf.updateContainersNonReentrant(transition: .immediate)
}, statusBarUpdated: { [weak self] transition in
guard let strongSelf = self else {