mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
Move SimpleCoordinator out
This commit is contained in:
@@ -73,7 +73,7 @@ final class RoomInfoCoordinator: RoomInfoCoordinatorType {
|
||||
extension RoomInfoCoordinator: RoomInfoListCoordinatorDelegate {
|
||||
|
||||
func roomInfoListCoordinator(_ coordinator: RoomInfoListCoordinatorType, wantsToNavigate viewController: UIViewController) {
|
||||
let coordinator = BasicCoordinator(withViewController: viewController)
|
||||
let coordinator = SimpleCoordinator(withViewController: viewController)
|
||||
coordinator.start()
|
||||
|
||||
self.add(childCoordinator: coordinator)
|
||||
@@ -87,27 +87,3 @@ extension RoomInfoCoordinator: RoomInfoListCoordinatorDelegate {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class BasicCoordinator: Coordinator {
|
||||
|
||||
private let viewController: UIViewController
|
||||
|
||||
init(withViewController viewController: UIViewController) {
|
||||
self.viewController = viewController
|
||||
}
|
||||
|
||||
func start() {
|
||||
|
||||
}
|
||||
|
||||
var childCoordinators: [Coordinator] = []
|
||||
|
||||
}
|
||||
|
||||
extension BasicCoordinator: Presentable {
|
||||
|
||||
func toPresentable() -> UIViewController {
|
||||
return viewController
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user