Various improvements

This commit is contained in:
Ilya Laktyushin
2024-08-11 01:19:25 +02:00
parent 6109477015
commit c92ce1c1dc
6 changed files with 34 additions and 6 deletions

View File

@@ -52,8 +52,12 @@ public final class PresentationContext {
return self.view != nil && self.layout != nil
}
public private(set) var controllers: [(ContainableController, PresentationSurfaceLevel)] = []
public var controllersUpdated: ([ContainableController]) -> Void = { _ in }
public private(set) var controllers: [(ContainableController, PresentationSurfaceLevel)] = [] {
didSet {
self.controllersUpdated(self.controllers)
}
}
public var controllersUpdated: ([(ContainableController, PresentationSurfaceLevel)]) -> Void = { _ in }
private var presentationDisposables = DisposableSet()