mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-04-24 00:25:58 +02:00
db53826061
- 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
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
|
|
}
|
|
}
|