@ -226,7 +226,8 @@ extension KycInteractor: KycInteractorInput {
self.service.submit(param: params, images: images, success: { (response) in
// print(response?.firstName)
// Todo: After success what?
self.output?.submitSuccess()
}) { (error) in
self.output?.show(error: error)
}
@ -15,4 +15,5 @@ protocol KycInteractorOutput: class {
func show(result2: (isValid: Bool, errorsDick: [String: String]))
func show(result3: (isValid: Bool, errorsDick: [String: String]))
func show(error: Error)
func submitSuccess()
@ -32,6 +32,11 @@ extension KycPresenter: KycModuleInterface {
// MARK: Kyc interactor output interface
extension KycPresenter: KycInteractorOutput {
func submitSuccess() {
self.wireframe?.gotToHome()
func show(result1: (isValid: Bool, errorsDick: [String : String])) {
self.view?.hideLoading()
self.view?.show(resultl: result1)
@ -31,4 +31,10 @@ extension KycWireframe: KycWireframeInput {
self.view = viewController
return viewController
func gotToHome() {
if let navigation = self.view.navigationController {
navigation.popViewController(animated: true)
@ -9,5 +9,5 @@
import Foundation
protocol KycWireframeInput: WireframeInput {
func gotToHome()