mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
28 lines
847 B
Swift
28 lines
847 B
Swift
import Foundation
|
|
import AsyncDisplayKit
|
|
import Display
|
|
|
|
protocol ItemListControllerSearchNavigationContentNode {
|
|
func activate()
|
|
func deactivate()
|
|
|
|
func setQueryUpdated(_ f: @escaping (String) -> Void)
|
|
}
|
|
|
|
protocol ItemListControllerSearch {
|
|
func isEqual(to: ItemListControllerSearch) -> Bool
|
|
func titleContentNode(current: (NavigationBarContentNode & ItemListControllerSearchNavigationContentNode)?) -> NavigationBarContentNode & ItemListControllerSearchNavigationContentNode
|
|
func node(current: ItemListControllerSearchNode?) -> ItemListControllerSearchNode
|
|
}
|
|
|
|
class ItemListControllerSearchNode: ASDisplayNode {
|
|
func queryUpdated(_ query: String) {
|
|
|
|
}
|
|
|
|
func updateLayout(layout: ContainerViewLayout, navigationBarHeight: CGFloat, transition: ContainedViewLayoutTransition) {
|
|
|
|
}
|
|
}
|
|
|