mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/Display git-subtree-mainline: 9bc996374ffdad37aef175427db72731c9551dcf git-subtree-split: 7bd11013ea936e3d49d937550d599f5816d32560
32 lines
731 B
Swift
32 lines
731 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
|
|
public enum NavigationBarContentMode {
|
|
case replacement
|
|
case expansion
|
|
}
|
|
|
|
open class NavigationBarContentNode: ASDisplayNode {
|
|
open var requestContainerLayout: (ContainedViewLayoutTransition) -> Void = { _ in }
|
|
|
|
open var height: CGFloat {
|
|
return self.nominalHeight
|
|
}
|
|
|
|
open var clippedHeight: CGFloat {
|
|
return self.nominalHeight
|
|
}
|
|
|
|
open var nominalHeight: CGFloat {
|
|
return 44.0
|
|
}
|
|
|
|
open var mode: NavigationBarContentMode {
|
|
return .replacement
|
|
}
|
|
|
|
open func updateLayout(size: CGSize, leftInset: CGFloat, rightInset: CGFloat, transition: ContainedViewLayoutTransition) {
|
|
}
|
|
}
|