Created
September 23, 2022 02:42
-
-
Save scott-lydon/66288a6292d60798fe638051a83b4851 to your computer and use it in GitHub Desktop.
This file contains 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
import UIKit | |
extension ViewController { | |
@IBAction func blueTapped(_ sender: Any) { | |
coordinator?.goToBlueView() | |
} | |
} | |
extension MainCoordinator { | |
func goToBlueView() { | |
let vc = BlueViewController.instantiate() | |
vc.coordinator = self | |
navigationController.pushViewController(vc, animated: true) | |
} | |
} | |
class BlueViewController: UIViewController, Storyboarded { | |
weak var coordinator: Coordinator? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment