mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
40 lines
1.4 KiB
Swift
40 lines
1.4 KiB
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import TelegramPresentationData
|
|
import TextSelectionNode
|
|
import TelegramCore
|
|
import SwiftSignalKit
|
|
import ReactionSelectionNode
|
|
|
|
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 wantsDisplayBelowKeyboard() -> Bool
|
|
|
|
func update(
|
|
presentationData: PresentationData,
|
|
layout: ContainerViewLayout,
|
|
transition: ContainedViewLayoutTransition,
|
|
stateTransition: ContextControllerPresentationNodeStateTransition?
|
|
)
|
|
|
|
func animateOutToReaction(value: MessageReaction.Reaction, targetView: UIView, hideNode: Bool, animateTargetContainer: UIView?, addStandaloneReactionAnimation: ((StandaloneReactionAnimation) -> Void)?, reducedCurve: Bool, completion: @escaping () -> Void)
|
|
func cancelReactionAnimation()
|
|
|
|
func highlightGestureMoved(location: CGPoint, hover: Bool)
|
|
func highlightGestureFinished(performAction: Bool)
|
|
|
|
func decreaseHighlightedIndex()
|
|
func increaseHighlightedIndex()
|
|
|
|
func addRelativeContentOffset(_ offset: CGPoint, transition: ContainedViewLayoutTransition)
|
|
}
|