mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Temp
This commit is contained in:
31
submodules/Display/Source/ContainableController.swift
Normal file
31
submodules/Display/Source/ContainableController.swift
Normal file
@@ -0,0 +1,31 @@
|
||||
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 }
|
||||
var updateTransitionWhenPresentedAsModal: ((CGFloat, ContainedViewLayoutTransition) -> Void)? { get set }
|
||||
|
||||
func combinedSupportedOrientations(currentOrientationToLock: UIInterfaceOrientationMask) -> ViewControllerSupportedOrientations
|
||||
var deferScreenEdgeGestures: UIRectEdge { get }
|
||||
var prefersOnScreenNavigationHidden: Bool { get }
|
||||
|
||||
func containerLayoutUpdated(_ layout: ContainerViewLayout, transition: ContainedViewLayoutTransition)
|
||||
func updateToInterfaceOrientation(_ orientation: UIInterfaceOrientation)
|
||||
func updateModalTransition(_ value: CGFloat, transition: ContainedViewLayoutTransition)
|
||||
func preferredContentSizeForLayout(_ layout: ContainerViewLayout) -> CGSize?
|
||||
|
||||
func viewWillAppear(_ animated: Bool)
|
||||
func viewWillDisappear(_ animated: Bool)
|
||||
func viewDidAppear(_ animated: Bool)
|
||||
func viewDidDisappear(_ animated: Bool)
|
||||
}
|
||||
Reference in New Issue
Block a user