Update KeyBackupSetupCoordinator to handle coming from sign out info

This commit is contained in:
SBiOSoftWhare
2019-02-15 19:06:08 +01:00
parent 79225e5416
commit fa4909b20d
3 changed files with 42 additions and 11 deletions
@@ -46,8 +46,13 @@ final class KeyBackupSetupCoordinatorBridgePresenter: NSObject {
// MARK: - Public
// NOTE: Default value feature is not compatible with Objective-C.
func present(from viewController: UIViewController, animated: Bool) {
let keyBackupSetupCoordinator = KeyBackupSetupCoordinator(session: self.session)
self.present(from: viewController, isStartedFromSignOut: false, animated: animated)
}
func present(from viewController: UIViewController, isStartedFromSignOut: Bool, animated: Bool) {
let keyBackupSetupCoordinator = KeyBackupSetupCoordinator(session: self.session, isStartedFromSignOut: isStartedFromSignOut)
keyBackupSetupCoordinator.delegate = self
viewController.present(keyBackupSetupCoordinator.toPresentable(), animated: animated, completion: nil)
keyBackupSetupCoordinator.start()