mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-24 03:46:23 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
33 lines
761 B
Swift
33 lines
761 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) -> CGSize {
|
|
return size
|
|
}
|
|
}
|