Skip to content
Permalink
Browse files

SWF-21 Care credit image assets, loading label

  • Loading branch information
ahm11003 committed Mar 29, 2019
1 parent 6bedc02 commit 00d3583f8e5c0e891e0583c01e3f4d136456622e
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "account_menu_cc_icon.pdf",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "wellness_menu_cc.pdf",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.
@@ -17,7 +17,7 @@
<button alignment="center" id="8yj-m6-1L9">
<group key="contentGroup" width="1" height="0.5" alignment="left" contentMode="scaleAspectFit" layout="vertical" id="SBG-wc-YDJ">
<items>
<imageView height="0.69999999999999996" alignment="center" image="account_menu" contentMode="scaleAspectFit" id="zAJ-yo-M72"/>
<imageView height="0.69999999999999996" alignment="center" image="account_menu_cc_icon" contentMode="scaleAspectFit" id="zAJ-yo-M72"/>
<label alignment="center" text="Accounts" id="Ohi-ve-NfC"/>
</items>
</group>
@@ -28,7 +28,7 @@
<button alignment="center" verticalAlignment="bottom" id="Vth-km-gVm">
<group key="contentGroup" width="1" height="0.5" alignment="left" layout="vertical" id="MJs-LA-txN">
<items>
<imageView height="0.69999999999999996" alignment="center" verticalAlignment="bottom" image="wellness_menu" contentMode="scaleAspectFit" id="vJk-Xc-SS2"/>
<imageView height="0.69999999999999996" alignment="center" verticalAlignment="bottom" image="wellness_menu_cc" contentMode="scaleAspectFit" id="vJk-Xc-SS2"/>
<label alignment="center" verticalAlignment="bottom" text="Wellness" id="gpF-4d-eKv"/>
</items>
</group>
@@ -37,10 +37,12 @@
</connections>
</button>
<imageView alignment="left" hidden="YES" animationDuration="1" id="c6R-RW-IpR"/>
<label width="1" alignment="center" hidden="YES" text="Logging In..." textAlignment="center" id="Omp-sY-u45"/>
</items>
<connections>
<outlet property="accountsButton" destination="8yj-m6-1L9" id="N4i-Zw-wUL"/>
<outlet property="activityIndicator" destination="c6R-RW-IpR" id="JKZ-46-2hN"/>
<outlet property="loadingLabel" destination="Omp-sY-u45" id="JoG-2r-I4p"/>
<outlet property="wellnessButton" destination="Vth-km-gVm" id="jaB-M2-lvs"/>
</connections>
</controller>
@@ -121,6 +123,7 @@
<controller identifier="AccountDetails" id="yrN-yp-gkH" customClass="AccountDetailsInterfaceController" customModule="SynchronyFinancial_WatchKit_Extension">
<items>
<imageView alignment="left" hidden="YES" id="diX-Fh-Why"/>
<label width="1" alignment="center" hidden="YES" text="Loading History..." textAlignment="center" id="feN-nN-gaz"/>
<label width="1" alignment="left" text="Label" textAlignment="center" id="qzl-GE-bpZ">
<fontDescription key="font" style="UICTFontTextStyleHeadline"/>
</label>
@@ -149,6 +152,7 @@
<outlet property="activityIndicator" destination="diX-Fh-Why" id="Syr-8v-cTP"/>
<outlet property="availableFundsLabel" destination="q0b-tb-dAb" id="rcl-Tl-bDh"/>
<outlet property="balanceLabel" destination="mdb-QX-GuO" id="2Dj-nO-AM8"/>
<outlet property="loadingLabel" destination="feN-nN-gaz" id="i4Z-oG-hyy"/>
<outlet property="nextPaymentDueLabel" destination="CPc-qk-Z2y" id="AzY-pn-EMY"/>
<outlet property="nextPaymentTitleLabel" destination="rxs-Zb-naU" id="IDH-8E-WWm"/>
<outlet property="payButton" destination="zeF-ky-mkm" id="v5U-Y5-shh"/>
@@ -14,6 +14,7 @@ class AccountDetailsInterfaceController: WKInterfaceController {
var dictForAcct: [String: Account] = [:]
var transactionDict: [String: [Transaction]] = [:]

@IBOutlet var loadingLabel: WKInterfaceLabel!
@IBOutlet var activityIndicator: WKInterfaceImage!
@IBOutlet weak var transactionsButton: WKInterfaceButton!
@IBOutlet weak var payButton: WKInterfaceButton!
@@ -106,5 +107,7 @@ class AccountDetailsInterfaceController: WKInterfaceController {
accountNameLabel.setHidden(hide)
nextPaymentDueLabel.setHidden(hide)
nextPaymentTitleLabel.setHidden(hide)
loadingLabel.setVerticalAlignment(.center)
loadingLabel.setHidden(!hide)
}
}
@@ -15,6 +15,7 @@ class MainMenuInterfaceController: WKInterfaceController {
@IBOutlet weak var accountsButton: WKInterfaceButton!
@IBOutlet weak var wellnessButton: WKInterfaceButton!

@IBOutlet var loadingLabel: WKInterfaceLabel!
@IBOutlet var activityIndicator: WKInterfaceImage!
var acctDict: [String: [Account]] = [:]

@@ -24,7 +25,10 @@ class MainMenuInterfaceController: WKInterfaceController {
guard let initial = context as? [String: [Account]], let accts = initial["accts"] else {
accountsButton.setHidden(true)
wellnessButton.setHidden(true)
loadingLabel.setHidden(false)
loadingLabel.setVerticalAlignment(.center)
activityIndicator.configureForActivityIndicator()

NSLog("Error getting context from WKExtensionDelegate, showing activity indicator")
return
}

0 comments on commit 00d3583

Please sign in to comment.
You can’t perform that action at this time.