mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
20 lines
848 B
Swift
20 lines
848 B
Swift
import Foundation
|
|
import Postbox
|
|
import TelegramCore
|
|
import AsyncDisplayKit
|
|
|
|
protocol InstantPageItem {
|
|
var frame: CGRect { get set }
|
|
var wantsNode: Bool { get }
|
|
var medias: [InstantPageMedia] { get }
|
|
|
|
func matchesAnchor(_ anchor: String) -> Bool
|
|
func drawInTile(context: CGContext)
|
|
func node(account: Account, strings: PresentationStrings, theme: InstantPageTheme, openMedia: @escaping (InstantPageMedia) -> Void, openPeer: @escaping (PeerId) -> Void, openUrl: @escaping (InstantPageUrlItem) -> Void, updateWebEmbedHeight: @escaping (Int, Int) -> Void) -> (InstantPageNode & ASDisplayNode)?
|
|
func matchesNode(_ node: InstantPageNode) -> Bool
|
|
func linkSelectionRects(at point: CGPoint) -> [CGRect]
|
|
|
|
func distanceThresholdGroup() -> Int?
|
|
func distanceThresholdWithGroupCount(_ count: Int) -> CGFloat
|
|
}
|