mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-28 22:17:46 +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.
40 lines
1.4 KiB
Swift
40 lines
1.4 KiB
Swift
import Foundation
|
|
import UIKit
|
|
import Display
|
|
import AsyncDisplayKit
|
|
import ComponentFlow
|
|
import SwiftSignalKit
|
|
import AccountContext
|
|
import AttachmentUI
|
|
import GiftOptionsScreen
|
|
|
|
public class PremiumGiftAttachmentScreen: GiftOptionsScreen, AttachmentContainable {
|
|
public var requestAttachmentMenuExpansion: () -> Void = {}
|
|
public var updateNavigationStack: (@escaping ([AttachmentContainable]) -> ([AttachmentContainable], AttachmentMediaPickerContext?)) -> Void = { _ in }
|
|
public var updateTabBarAlpha: (CGFloat, ContainedViewLayoutTransition) -> Void = { _, _ in }
|
|
public var updateTabBarVisibility: (Bool, ContainedViewLayoutTransition) -> Void = { _, _ in }
|
|
public var cancelPanGesture: () -> Void = { }
|
|
public var isContainerPanning: () -> Bool = { return false }
|
|
public var isContainerExpanded: () -> Bool = { return false }
|
|
public var isMinimized: Bool = false
|
|
|
|
public var mediaPickerContext: AttachmentMediaPickerContext? {
|
|
return PremiumGiftContext(controller: self)
|
|
}
|
|
}
|
|
|
|
private final class PremiumGiftContext: AttachmentMediaPickerContext {
|
|
private weak var controller: GiftOptionsScreen?
|
|
|
|
public var mainButtonState: Signal<AttachmentMainButtonState?, NoError> {
|
|
return .single(nil)
|
|
}
|
|
|
|
init(controller: GiftOptionsScreen) {
|
|
self.controller = controller
|
|
}
|
|
|
|
func mainButtonAction() {
|
|
}
|
|
}
|