mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -18,7 +18,7 @@ public enum PresentationContextType {
|
||||
|
||||
public final class PresentationContext {
|
||||
private var _view: UIView?
|
||||
var view: UIView? {
|
||||
public var view: UIView? {
|
||||
get {
|
||||
return self._view
|
||||
} set(value) {
|
||||
@@ -123,6 +123,9 @@ public final class PresentationContext {
|
||||
return (containerLayout, CGRect(origin: CGPoint(), size: containerLayout.size))
|
||||
}
|
||||
|
||||
public init() {
|
||||
}
|
||||
|
||||
public func present(_ controller: ContainableController, on level: PresentationSurfaceLevel, blockInteraction: Bool = false, completion: @escaping () -> Void) {
|
||||
let controllerReady = controller.ready.get()
|
||||
|> filter({ $0 })
|
||||
|
||||
Reference in New Issue
Block a user