Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ahm11003 committed Apr 11, 2019
1 parent 9303329 commit 3599c77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="14460.31" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Qge-pO-HLc">
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="14490.70" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Qge-pO-HLc">
<device id="watch38" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="watchOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="14460.16"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="14490.21"/>
</dependencies>
<scenes>
<!--root-->
Expand Down Expand Up @@ -59,7 +59,7 @@
<button width="1" alignment="center" verticalAlignment="bottom" title="Tap For More" id="yYk-gv-I5B">
<fontDescription key="font" type="system" pointSize="13"/>
<connections>
<segue destination="Mki-ad-UCC" kind="modal" id="feD-D2-nPx"/>
<action selector="moreButtonTapped" destination="FsK-xr-8Fi" id="uxY-jK-pTW"/>
</connections>
</button>
</items>
Expand Down
Expand Up @@ -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() {
Expand Down Expand Up @@ -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])
}

}

0 comments on commit 3599c77

Please sign in to comment.