|
@@ -5,7 +5,7 @@
|
|
|
// Created by Pavel Yurchenko on 28.11.2024.
|
|
// Created by Pavel Yurchenko on 28.11.2024.
|
|
|
//
|
|
//
|
|
|
|
|
|
|
|
-import Foundation
|
|
|
|
|
|
|
+import SwiftUI
|
|
|
|
|
|
|
|
open class BaseCoordinator: Coordinator {
|
|
open class BaseCoordinator: Coordinator {
|
|
|
|
|
|
|
@@ -13,6 +13,8 @@ open class BaseCoordinator: Coordinator {
|
|
|
|
|
|
|
|
public var finishFlow: Action?
|
|
public var finishFlow: Action?
|
|
|
|
|
|
|
|
|
|
+ public var currentRouter: Router = Router()
|
|
|
|
|
+
|
|
|
// MARK: - Private properties
|
|
// MARK: - Private properties
|
|
|
|
|
|
|
|
private var childCoordinators = [Coordinator]()
|
|
private var childCoordinators = [Coordinator]()
|
|
@@ -30,7 +32,9 @@ open class BaseCoordinator: Coordinator {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- open func start() {}
|
|
|
|
|
|
|
+ public init() { }
|
|
|
|
|
+
|
|
|
|
|
+ open func run() {}
|
|
|
|
|
|
|
|
deinit {
|
|
deinit {
|
|
|
print("\(self.self) deinit")
|
|
print("\(self.self) deinit")
|