mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
19 lines
833 B
Swift
19 lines
833 B
Swift
import Foundation
|
|
import AsyncDisplayKit
|
|
|
|
public protocol MinimizedContainer: ASDisplayNode {
|
|
var navigationController: NavigationController? { get set }
|
|
var controllers: [ViewController] { get }
|
|
var isExpanded: Bool { get }
|
|
|
|
var willMaximize: (() -> Void)? { get set }
|
|
|
|
func addController(_ viewController: ViewController, beforeMaximize: @escaping (NavigationController, @escaping () -> Void) -> Void, transition: ContainedViewLayoutTransition)
|
|
func maximizeController(_ viewController: ViewController, animated: Bool, completion: @escaping (Bool) -> Void)
|
|
func collapse()
|
|
func dismissAll(completion: @escaping () -> Void)
|
|
|
|
func updateLayout(_ layout: ContainerViewLayout, transition: ContainedViewLayoutTransition)
|
|
func collapsedHeight(layout: ContainerViewLayout) -> CGFloat
|
|
}
|