mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
16 lines
517 B
Swift
16 lines
517 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import TelegramPresentationData
|
|
|
|
public protocol InstantPageNode: ASDisplayNode {
|
|
func updateIsVisible(_ isVisible: Bool)
|
|
|
|
func transitionNode(media: InstantPageMedia) -> (ASDisplayNode, CGRect, () -> (UIView?, UIView?))?
|
|
func updateHiddenMedia(media: InstantPageMedia?)
|
|
func update(strings: PresentationStrings, theme: InstantPageTheme)
|
|
|
|
func updateLayout(size: CGSize, transition: ContainedViewLayoutTransition)
|
|
}
|