mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
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) {
|
|
}
|
|
}
|