Files
ghostgram/submodules/Display/Source/NavigationBarContentNode.swift
ichmagmaus 812 db53826061 chore: migrate to new version + fixed several critical bugs
- Migrated project to latest Telegram iOS base (v12.3.2+)
- Fixed circular dependency between GhostModeManager and MiscSettingsManager
- Fixed multiple Bazel build configuration errors (select() default conditions)
- Fixed duplicate type definitions in PeerInfoScreen
- Fixed swiftmodule directory resolution in build scripts
- Added Ghostgram Settings tab in main Settings menu with all 5 features
- Cleared sensitive credentials from config.json (template-only now)
- Excluded bazel-cache from version control
2026-02-23 23:04:32 +01:00

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
}
}