|
|
@ -10,6 +10,8 @@ import UIKit |
|
|
|
|
|
|
|
class RegisterWireframe { |
|
|
|
weak var view: UIViewController! |
|
|
|
var isFromSplash: Bool = false |
|
|
|
lazy var loginWireFrame = LoginWireframe() |
|
|
|
} |
|
|
|
|
|
|
|
extension RegisterWireframe: RegisterWireframeInput { |
|
|
@ -33,6 +35,17 @@ extension RegisterWireframe: RegisterWireframeInput { |
|
|
|
} |
|
|
|
|
|
|
|
func login() { |
|
|
|
if isFromSplash { |
|
|
|
if let navigation = self.view.navigationController { |
|
|
|
loginWireFrame.pushMainView(in: navigation) |
|
|
|
} |
|
|
|
}else { |
|
|
|
self.view.navigationController?.popViewController(animated: true) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func openRegistrationFromSplash(source: UINavigationController) { |
|
|
|
self.isFromSplash = true |
|
|
|
self.pushMainView(in: source) |
|
|
|
} |
|
|
|
} |