From 0e76bccb4be1253e5fae95abacd3316093deef7d Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Fri, 29 Mar 2019 18:57:36 -0400 Subject: [PATCH] SWE-12 Navigation changes - in order to avoid having a back button on the Payment Result screen, we present it modally and then pop to the root controller - this gives the user a view with Cancel in the left corner, and a Home button. Tapping cancel will dismiss the modal, showing the Home screen --- .../PaymentDetailInterfaceController.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentDetailInterfaceController.swift b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentDetailInterfaceController.swift index 8992f0c..32df8da 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentDetailInterfaceController.swift +++ b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentDetailInterfaceController.swift @@ -39,10 +39,9 @@ class PaymentDetailInterfaceController: WKInterfaceController { guard error == nil else { return } self.dictForPayment.updateValue(confirmationNum, forKey: "payment_confirmation_number") self.dictForPayment.updateValue(paymentID, forKey: "payment_id") - self.pushController(withName: "PaymentResult", context: self.dictForPayment) + self.presentController(withName: "PaymentResult", context: self.dictForPayment) + self.popToRootController() } - -// popToRootController() } else { // animate(withDuration: 0.75) { // self.paymentButton.setBackgroundColor(UIColor.init(red: 141, green: 241, blue: 48, alpha: 1.0))