mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
23 lines
710 B
Swift
23 lines
710 B
Swift
import Foundation
|
|
import AsyncDisplayKit
|
|
import Display
|
|
|
|
protocol FormControllerEntry: Identifiable {
|
|
func isEqual(to: Self) -> Bool
|
|
func item(strings: PresentationStrings) -> FormControllerItem
|
|
}
|
|
|
|
enum FormControllerItemNeighbor {
|
|
case none
|
|
case spacer
|
|
case item(FormControllerItem)
|
|
}
|
|
|
|
protocol FormControllerItem {
|
|
func node() -> ASDisplayNode & FormControllerItemNode
|
|
func update(node: ASDisplayNode & FormControllerItemNode, theme: PresentationTheme, strings: PresentationStrings, width: CGFloat, previousNeighbor: FormControllerItemNeighbor, nextNeighbor: FormControllerItemNeighbor, transition: ContainedViewLayoutTransition) -> CGFloat
|
|
}
|
|
|
|
protocol FormControllerItemNode {
|
|
}
|