|
|
@ -73,13 +73,19 @@ extension SetupRecipientWireframe: SetupRecipientWireframeInput { |
|
|
|
recipient = model |
|
|
|
sendReciptent = completion |
|
|
|
let viewcontroller = getMainView() |
|
|
|
let navigationController = UINavigationController( |
|
|
|
rootViewController: viewcontroller |
|
|
|
) |
|
|
|
navigationController.hero.isEnabled = true |
|
|
|
navigationController.modalPresentationStyle = .overFullScreen |
|
|
|
// base.navigationController.push(getMainView(), animated: true) |
|
|
|
base.present(navigationController, animated: true) |
|
|
|
// let navigationController = UINavigationController( |
|
|
|
// rootViewController: viewcontroller |
|
|
|
// ) |
|
|
|
|
|
|
|
if let navVC = base.navigationController { |
|
|
|
// let wireframe = BeneficiaryDetailWireframe() |
|
|
|
navVC.push(viewcontroller, animated: true) |
|
|
|
} |
|
|
|
|
|
|
|
// navigationController.hero.isEnabled = true |
|
|
|
// navigationController.mxodalPresentationStyle = .overFullScreen |
|
|
|
//// base.navigationController.push(getMainView(), animated: true) |
|
|
|
// base.present(navigationController, animated: true) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
@ -94,12 +100,19 @@ extension SetupRecipientWireframe: SetupRecipientWireframeInput { |
|
|
|
self.delegate = delegate |
|
|
|
self.parentType = parentType |
|
|
|
let viewcontroller = getMainView() |
|
|
|
let navigationController = UINavigationController( |
|
|
|
rootViewController: viewcontroller |
|
|
|
) |
|
|
|
navigationController.hero.isEnabled = true |
|
|
|
navigationController.modalPresentationStyle = .overFullScreen |
|
|
|
base.present(navigationController, animated: true, completion: completion) |
|
|
|
|
|
|
|
// let navigationController = UINavigationController( |
|
|
|
// rootViewController: viewcontroller |
|
|
|
// ) |
|
|
|
// navigationController.hero.isEnabled = true |
|
|
|
// navigationController.modalPresentationStyle = .overFullScreen |
|
|
|
// base.present(navigationController, animated: true, completion: completion) |
|
|
|
if let navVC = base.navigationController { |
|
|
|
// let wireframe = BeneficiaryDetailWireframe() |
|
|
|
// wireframe.recipient = reciptent |
|
|
|
navVC.push(viewcontroller, animated: true) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func openSelectMode(with model: [TablePresenterProtocol], type: SetupOpenType) { |
|
|
@ -197,7 +210,19 @@ extension SetupRecipientWireframe: TablePresenterDelegate { |
|
|
|
wireframe.output = self.presenter |
|
|
|
wireframe.viewModel = self.viewModel |
|
|
|
wireframe.paymentMethod = paymentMethod |
|
|
|
wireframe.open(for: recipientData, in: navigationVC) |
|
|
|
|
|
|
|
guard let parentVC = self.view.presentingViewController else { |
|
|
|
wireframe.open(for: recipientData, in: navigationVC) |
|
|
|
|
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
guard let parentNavVC = parentVC.navigationController else { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
wireframe.open(for: recipientData, in: parentNavVC) |
|
|
|
navigationVC.navigationController?.popToRootViewController(animated: true) |
|
|
|
|
|
|
|
} |
|
|
|
} |