| 12345678910111213141516171819202122232425262728293031323334 |
- //
- // ApplicationCoordinator.swift
- // SUIExamples
- //
- // Created by Pavel Yurchenko on 28.11.2024.
- //
- import CoordinatorSUI
- final class ApplicationCoordinator: BaseCoordinator {
- static var rootRouter = Router()
- override init() {
- super.init()
- self.currentRouter = Self.rootRouter
- }
- override func run() {
- runMainFlow()
- }
- // MARK: - Private methods
- private func runMainFlow() {
- let coordinator = MainCoordinator(router: self.currentRouter)
- addChild(coordinator)
- coordinator.finishFlow = { [weak self] in
- self?.removeChild(coordinator)
- }
- coordinator.run()
- }
- }
|