mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-01 20:28:05 +00:00
19 lines
585 B
Swift
19 lines
585 B
Swift
import Foundation
|
|
import TelegramCore
|
|
|
|
protocol InstantPageItem {
|
|
var frame: CGRect { get set }
|
|
var hasLinks: Bool { get }
|
|
var wantsNode: Bool { get }
|
|
var medias: [InstantPageMedia] { get }
|
|
|
|
func matchesAnchor(_ anchor: String) -> Bool
|
|
func drawInTile(context: CGContext)
|
|
func node(account: Account) -> InstantPageNode?
|
|
func matchesNode(_ node: InstantPageNode) -> Bool
|
|
func linkSelectionViews() -> [InstantPageLinkSelectionView]
|
|
|
|
func distanceThresholdGroup() -> Int?
|
|
func distanceThresholdWithGroupCount(_ count: Int) -> CGFloat
|
|
}
|