Last active
February 26, 2020 14:51
-
-
Save ramonilho/70d417c4ef922528962057af695eeaa9 to your computer and use it in GitHub Desktop.
CoordinatorProtocol
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
public protocol Coordinator: AnyObject { | |
// Uma referência direta à navigation, para ter total controle de push/pop/dismiss | |
var navigationController: UIViewController { get set } | |
// Uma referência à viewController raíz do fluxo. | |
// Bem útil para quando precisar encerrar o fluxo com um popToViewController(_:) | |
var rootViewController: UIViewController { get set } | |
// Método padrão para inicialização do fluxo | |
func start(animated: Bool) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment