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