mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Merge commit 'ba1c3c09d8b7399e411edc066ec9a43c30f30094' into experimental-3
This commit is contained in:
@@ -158,7 +158,7 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
private var globalOverlayContainerParent: GlobalOverlayContainerParent?
|
||||
public var globalOverlayControllersUpdated: (() -> Void)?
|
||||
|
||||
private var validLayout: ContainerViewLayout?
|
||||
public private(set) var validLayout: ContainerViewLayout?
|
||||
private var validStatusBarStyle: NavigationStatusBarStyle?
|
||||
private var validStatusBarHidden: Bool = false
|
||||
|
||||
@@ -1309,6 +1309,18 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
completion()
|
||||
}
|
||||
|
||||
public func updateContainerPulled(_ pushed: Bool) {
|
||||
guard self.modalContainers.isEmpty else {
|
||||
return
|
||||
}
|
||||
if let rootContainer = self.rootContainer, case let .flat(container) = rootContainer {
|
||||
let scale: CGFloat = pushed ? 1.06 : 1.0
|
||||
|
||||
container.view.layer.transform = CATransform3DMakeScale(scale, scale, 1.0)
|
||||
container.view.layer.animateScale(from: pushed ? 1.0 : 1.06, to: scale, duration: 0.3, timingFunction: kCAMediaTimingFunctionSpring)
|
||||
}
|
||||
}
|
||||
|
||||
open override func pushViewController(_ viewController: UIViewController, animated: Bool) {
|
||||
var controllers = self.viewControllers
|
||||
controllers.append(viewController)
|
||||
|
||||
Reference in New Issue
Block a user