mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
21
submodules/TelegramUI/Components/ChatInputNode/BUILD
Normal file
21
submodules/TelegramUI/Components/ChatInputNode/BUILD
Normal file
@@ -0,0 +1,21 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
swift_library(
|
||||
name = "ChatInputNode",
|
||||
module_name = "ChatInputNode",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
copts = [
|
||||
"-warnings-as-errors",
|
||||
],
|
||||
deps = [
|
||||
"//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit",
|
||||
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
||||
"//submodules/Display:Display",
|
||||
"//submodules/ChatPresentationInterfaceState:ChatPresentationInterfaceState",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,34 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
import Display
|
||||
import AsyncDisplayKit
|
||||
import SwiftSignalKit
|
||||
import ChatPresentationInterfaceState
|
||||
|
||||
open class ChatInputNode: ASDisplayNode {
|
||||
public var interfaceInteraction: ChatPanelInterfaceInteraction?
|
||||
open var ready: Signal<Void, NoError> {
|
||||
return .single(Void())
|
||||
}
|
||||
|
||||
open var externalTopPanelContainer: UIView? {
|
||||
return nil
|
||||
}
|
||||
|
||||
public var topBackgroundExtension: CGFloat = 0.0
|
||||
public var topBackgroundExtensionUpdated: ((ContainedViewLayoutTransition) -> Void)?
|
||||
|
||||
public var hideInput: Bool = false
|
||||
public var adjustLayoutForHiddenInput: Bool = false
|
||||
public var hideInputUpdated: ((ContainedViewLayoutTransition) -> Void)?
|
||||
|
||||
public var followsDefaultHeight: Bool = false
|
||||
|
||||
open func updateAbsoluteRect(_ rect: CGRect, within containerSize: CGSize, transition: ContainedViewLayoutTransition) {
|
||||
|
||||
}
|
||||
|
||||
open func updateLayout(width: CGFloat, leftInset: CGFloat, rightInset: CGFloat, bottomInset: CGFloat, standardInputHeight: CGFloat, inputHeight: CGFloat, maximumHeight: CGFloat, inputPanelHeight: CGFloat, transition: ContainedViewLayoutTransition, interfaceState: ChatPresentationInterfaceState, deviceMetrics: DeviceMetrics, isVisible: Bool, isExpanded: Bool) -> (CGFloat, CGFloat) {
|
||||
return (0.0, 0.0)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user