mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
16 lines
352 B
Swift
16 lines
352 B
Swift
import Foundation
|
|
|
|
public protocol GridSection {
|
|
var height: CGFloat { get }
|
|
var hashValue: Int { get }
|
|
|
|
func isEqual(to: GridSection) -> Bool
|
|
func node() -> ASDisplayNode
|
|
}
|
|
|
|
public protocol GridItem {
|
|
var section: GridSection? { get }
|
|
func node(layout: GridNodeLayout) -> GridItemNode
|
|
func update(node: GridItemNode)
|
|
}
|