mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00

git-subtree-dir: submodules/Display git-subtree-mainline: 9bc996374ffdad37aef175427db72731c9551dcf git-subtree-split: 7bd11013ea936e3d49d937550d599f5816d32560
28 lines
1010 B
Swift
28 lines
1010 B
Swift
import UIKit
|
|
import AsyncDisplayKit
|
|
import SwiftSignalKit
|
|
|
|
public protocol PresentableController: class {
|
|
func viewDidAppear(completion: @escaping () -> Void)
|
|
}
|
|
|
|
public protocol ContainableController: class {
|
|
var view: UIView! { get }
|
|
var displayNode: ASDisplayNode { get }
|
|
var isViewLoaded: Bool { get }
|
|
var isOpaqueWhenInOverlay: Bool { get }
|
|
var blocksBackgroundWhenInOverlay: Bool { get }
|
|
var ready: Promise<Bool> { get }
|
|
|
|
func combinedSupportedOrientations(currentOrientationToLock: UIInterfaceOrientationMask) -> ViewControllerSupportedOrientations
|
|
var deferScreenEdgeGestures: UIRectEdge { get }
|
|
|
|
func containerLayoutUpdated(_ layout: ContainerViewLayout, transition: ContainedViewLayoutTransition)
|
|
func updateToInterfaceOrientation(_ orientation: UIInterfaceOrientation)
|
|
|
|
func viewWillAppear(_ animated: Bool)
|
|
func viewWillDisappear(_ animated: Bool)
|
|
func viewDidAppear(_ animated: Bool)
|
|
func viewDidDisappear(_ animated: Bool)
|
|
}
|