Merge commit 'ba1c3c09d8b7399e411edc066ec9a43c30f30094' into experimental-3

This commit is contained in:
Ali
2022-09-16 22:59:21 +04:00
19 changed files with 314 additions and 51 deletions

View File

@@ -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)