From 3599c77efcf02c5a21761360222292af4ad96e1e Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Thu, 11 Apr 2019 17:28:58 -0400 Subject: [PATCH] SWF-17 remove storyboard segue - this was removed in favor of instantiating our page view hierarchy programatically - added `IBAction` to handle tap events from `Tap For More` button - removed call to push UtilizationScore --- .../Base.lproj/Interface.storyboard | 8 ++++---- .../WellnessInterfaceController.swift | 13 +++++-------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard b/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard index 0edbf64..4e021ef 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard +++ b/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard @@ -1,12 +1,12 @@ - + - - + + @@ -59,7 +59,7 @@ diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/WellnessInterfaceController.swift b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/WellnessInterfaceController.swift index 3be7420..cab891f 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/WellnessInterfaceController.swift +++ b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/WellnessInterfaceController.swift @@ -44,7 +44,6 @@ class WellnessInterfaceController: WKInterfaceController { image.setImageNamed("scores") image.startAnimatingWithImages(in: NSRange(location: 1, length: wellnessScore ?? 0), duration: 1.5, repeatCount: 1) - self.pushController(withName: "UtilizationScore", context: utilizationScore) } override func willActivate() { @@ -126,12 +125,10 @@ class WellnessInterfaceController: WKInterfaceController { } } }*/ - - override func contextForSegue(withIdentifier segueIdentifier: String) -> Any? { - if segueIdentifier == "UtilizationScore" { - return utilizationScore - } - return nil + + @IBAction func moreButtonTapped() { + print("received tapped") + let contexts = [20, 40, 60] + presentController(withNames: ["UtilizationScore", "AccountScore", "PaymentScore"], contexts: [20, 40, 60]) } - }