mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
29 lines
882 B
Swift
29 lines
882 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import TelegramPresentationData
|
|
import TextSelectionNode
|
|
import TelegramCore
|
|
import SwiftSignalKit
|
|
|
|
enum ContextControllerPresentationNodeStateTransition {
|
|
case animateIn
|
|
case animateOut(result: ContextMenuActionResult, completion: () -> Void)
|
|
}
|
|
|
|
protocol ContextControllerPresentationNode: ASDisplayNode {
|
|
func replaceItems(items: ContextController.Items, animated: Bool)
|
|
func pushItems(items: ContextController.Items)
|
|
func popItems()
|
|
|
|
func update(
|
|
presentationData: PresentationData,
|
|
layout: ContainerViewLayout,
|
|
transition: ContainedViewLayoutTransition,
|
|
stateTransition: ContextControllerPresentationNodeStateTransition?
|
|
)
|
|
|
|
func animateOutToReaction(value: String, targetView: UIView, hideNode: Bool, completion: @escaping () -> Void)
|
|
}
|