Swiftgram/Display/GridItem.swift
2017-02-11 17:02:35 +03:00

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)
}