From 7ed54df793a551ee712c30bc476947c05bcf6070 Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Mon, 8 Apr 2019 20:29:17 -0400 Subject: [PATCH] SWE-24 Configure cancellation success screen --- .../Base.lproj/Interface.storyboard | 14 +++++++++++++- .../CancellationInterfaceController.swift | 13 +++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard b/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard index 72fd8a4..81d6131 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard +++ b/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard @@ -314,7 +314,19 @@ - + + + + + + + + + diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/CancellationInterfaceController.swift b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/CancellationInterfaceController.swift index d49c2a6..465753a 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/CancellationInterfaceController.swift +++ b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/CancellationInterfaceController.swift @@ -9,13 +9,18 @@ import WatchKit import Foundation - class CancellationInterfaceController: WKInterfaceController { - + @IBOutlet var confirmationLabel: WKInterfaceLabel! + override func awake(withContext context: Any?) { super.awake(withContext: context) - - // Configure interface objects here. + + guard let data = context as? [String: String], let confirmation = data["cancellation_confirm"] else { + NSLog("Error receiving context for payment cancellation") + return + } + + confirmationLabel.setText(confirmation) } override func willActivate() {