mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-25 12:26:55 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
45 lines
1.4 KiB
Swift
45 lines
1.4 KiB
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import TelegramCore
|
|
import TelegramPresentationData
|
|
import TelegramUIPreferences
|
|
import AccountContext
|
|
import ChatPresentationInterfaceState
|
|
import ChatControllerInteraction
|
|
|
|
public enum ChatInputContextPanelPlacement {
|
|
case overPanels
|
|
case overTextInput
|
|
}
|
|
|
|
open class ChatInputContextPanelNode: ASDisplayNode {
|
|
public let context: AccountContext
|
|
open var interfaceInteraction: ChatPanelInterfaceInteraction?
|
|
open var placement: ChatInputContextPanelPlacement = .overPanels
|
|
open var theme: PresentationTheme
|
|
open var strings: PresentationStrings
|
|
open var fontSize: PresentationFontSize
|
|
|
|
public init(context: AccountContext, theme: PresentationTheme, strings: PresentationStrings, fontSize: PresentationFontSize, chatPresentationContext: ChatPresentationContext) {
|
|
self.context = context
|
|
self.theme = theme
|
|
self.strings = strings
|
|
self.fontSize = fontSize
|
|
|
|
super.init()
|
|
}
|
|
|
|
open func updateLayout(size: CGSize, leftInset: CGFloat, rightInset: CGFloat, bottomInset: CGFloat, transition: ContainedViewLayoutTransition, interfaceState: ChatPresentationInterfaceState) {
|
|
}
|
|
|
|
open func animateOut(completion: @escaping () -> Void) {
|
|
completion()
|
|
}
|
|
|
|
open var topItemFrame: CGRect? {
|
|
return nil
|
|
}
|
|
}
|