Secrets recovery: fix an issue preventing the release of SecureBackupSetupCoordinator

This commit is contained in:
Nicolas Mauri
2023-03-03 10:02:57 +01:00
parent ac0594d033
commit 2c1d56ece9
2 changed files with 11 additions and 6 deletions
@@ -73,15 +73,19 @@ final class SecureBackupSetupCoordinator: SecureBackupSetupCoordinatorType {
// MARK: - Public methods
func start() {
start(popCompletion: nil)
}
func start(popCompletion: (() -> Void)?) {
let rootViewController = self.createIntro()
if self.navigationRouter.modules.isEmpty == false {
self.navigationRouter.push(rootViewController, animated: true, popCompletion: nil)
self.navigationRouter.push(rootViewController, animated: true, popCompletion: popCompletion)
} else {
self.navigationRouter.setRootModule(rootViewController)
self.navigationRouter.setRootModule(rootViewController, popCompletion: popCompletion)
}
}
func toPresentable() -> UIViewController {
return self.navigationRouter
.toPresentable()