mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-26 23:39:12 +00:00
24 lines
496 B
Swift
24 lines
496 B
Swift
import Foundation
|
|
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 nominalHeight: CGFloat {
|
|
return 0.0
|
|
}
|
|
|
|
open var mode: NavigationBarContentMode {
|
|
return .replacement
|
|
}
|
|
}
|