mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
|
|
public protocol ItemListControllerFooterItem {
|
|
func isEqual(to: ItemListControllerFooterItem) -> Bool
|
|
func node(current: ItemListControllerFooterItemNode?) -> ItemListControllerFooterItemNode
|
|
}
|
|
|
|
open class ItemListControllerFooterItemNode: ASDisplayNode {
|
|
open func updateLayout(layout: ContainerViewLayout, transition: ContainedViewLayoutTransition) -> CGFloat {
|
|
return 0.0
|
|
}
|
|
|
|
open func updateBackgroundAlpha(_ alpha: CGFloat, transition: ContainedViewLayoutTransition) {
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public protocol ItemListControllerHeaderItem {
|
|
func isEqual(to: ItemListControllerHeaderItem) -> Bool
|
|
func node(current: ItemListControllerHeaderItemNode?) -> ItemListControllerHeaderItemNode
|
|
}
|
|
|
|
open class ItemListControllerHeaderItemNode: ASDisplayNode {
|
|
open func updateLayout(layout: ContainerViewLayout, transition: ContainedViewLayoutTransition) -> CGFloat {
|
|
return 0.0
|
|
}
|
|
|
|
open func updateContentOffset(_ contentOffset: CGFloat, transition: ContainedViewLayoutTransition) {
|
|
|
|
}
|
|
}
|