Created
          August 11, 2021 12:18 
        
      - 
      
 - 
        
Save nabs107/386236209de24c192f09f6ed8cc87c63 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // | |
| // LoginCoordinator.swift | |
| // ModularProject | |
| // | |
| // Created by Nabin Shrestha on 7/28/21. | |
| // | |
| import UIKit | |
| import Login | |
| final class LoginCoordinator: Coordinator, LoginCoordinatorDelegate { | |
| var childCoordinators = [Coordinator]() | |
| var navigationController: UINavigationController | |
| init(navigationController: UINavigationController) { | |
| self.navigationController = navigationController | |
| } | |
| func start() { | |
| let viewController = LoginViewController() | |
| viewController.loginCoordinatorDelegate = self | |
| navigationController.pushViewController(viewController, animated: true) | |
| } | |
| func dashboard(with name: String) { | |
| let coordinator = DashboardCoordinator(navigationController: navigationController) | |
| childCoordinators.append(coordinator) | |
| coordinator.start(with: name) | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment