Swiftgram/TelegramUI/ChatInputContextPanelNode.swift
2018-09-05 18:31:59 +01:00

29 lines
834 B
Swift

import Foundation
import AsyncDisplayKit
import Display
import TelegramCore
enum ChatInputContextPanelPlacement {
case overPanels
case overTextInput
}
class ChatInputContextPanelNode: ASDisplayNode {
let account: Account
var interfaceInteraction: ChatPanelInterfaceInteraction?
var placement: ChatInputContextPanelPlacement = .overPanels
var theme: PresentationTheme
init(account: Account, theme: PresentationTheme, strings: PresentationStrings) {
self.account = account
self.theme = theme
super.init()
}
func updateLayout(size: CGSize, leftInset: CGFloat, rightInset: CGFloat, transition: ContainedViewLayoutTransition, interfaceState: ChatPresentationInterfaceState) {
}
func animateOut(completion: @escaping () -> Void) {
completion()
}
}