Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ahm11003 committed Mar 29, 2019
1 parent 6f9d87c commit 0e76bcc
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -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))
Expand Down

0 comments on commit 0e76bcc

Please sign in to comment.