mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
38 lines
1.2 KiB
Swift
38 lines
1.2 KiB
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import Postbox
|
|
import TelegramCore
|
|
import AccountContext
|
|
import ChatPresentationInterfaceState
|
|
|
|
class ChatInputPanelNode: ASDisplayNode {
|
|
var context: AccountContext?
|
|
var interfaceInteraction: ChatPanelInterfaceInteraction?
|
|
var prevInputPanelNode: ChatInputPanelNode?
|
|
|
|
func updateAbsoluteRect(_ rect: CGRect, within containerSize: CGSize, transition: ContainedViewLayoutTransition) {
|
|
}
|
|
|
|
func updateLayout(width: CGFloat, leftInset: CGFloat, rightInset: CGFloat, additionalSideInsets: UIEdgeInsets, maxHeight: CGFloat, isSecondary: Bool, transition: ContainedViewLayoutTransition, interfaceState: ChatPresentationInterfaceState, metrics: LayoutMetrics) -> CGFloat {
|
|
return 0.0
|
|
}
|
|
|
|
func minimalHeight(interfaceState: ChatPresentationInterfaceState, metrics: LayoutMetrics) -> CGFloat {
|
|
return 0.0
|
|
}
|
|
|
|
func defaultHeight(metrics: LayoutMetrics) -> CGFloat {
|
|
if case .regular = metrics.widthClass, case .regular = metrics.heightClass {
|
|
return 49.0
|
|
} else {
|
|
return 45.0
|
|
}
|
|
}
|
|
|
|
func canHandleTransition(from prevInputPanelNode: ChatInputPanelNode?) -> Bool {
|
|
return false
|
|
}
|
|
}
|