Various improvements

This commit is contained in:
Ilya Laktyushin
2023-01-13 22:39:41 +04:00
parent 930e237bf1
commit a37c84aa68
4 changed files with 12 additions and 14 deletions

View File

@@ -1308,19 +1308,7 @@ open class NavigationController: UINavigationController, ContainableController,
self.pushViewController(controller, animated: animated)
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)