mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user