Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SWF-21 Care credit image assets, loading label
  • Loading branch information
ahm11003 committed Mar 29, 2019
1 parent 6bedc02 commit 00d3583
Show file tree
Hide file tree
Showing 7 changed files with 2,550 additions and 2 deletions.
@@ -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"
}
}

Large diffs are not rendered by default.

@@ -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"
}
}

Large diffs are not rendered by default.

Expand Up @@ -17,7 +17,7 @@
<button alignment="center" id="8yj-m6-1L9"> <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"> <group key="contentGroup" width="1" height="0.5" alignment="left" contentMode="scaleAspectFit" layout="vertical" id="SBG-wc-YDJ">
<items> <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"/> <label alignment="center" text="Accounts" id="Ohi-ve-NfC"/>
</items> </items>
</group> </group>
Expand All @@ -28,7 +28,7 @@
<button alignment="center" verticalAlignment="bottom" id="Vth-km-gVm"> <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"> <group key="contentGroup" width="1" height="0.5" alignment="left" layout="vertical" id="MJs-LA-txN">
<items> <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"/> <label alignment="center" verticalAlignment="bottom" text="Wellness" id="gpF-4d-eKv"/>
</items> </items>
</group> </group>
Expand All @@ -37,10 +37,12 @@
</connections> </connections>
</button> </button>
<imageView alignment="left" hidden="YES" animationDuration="1" id="c6R-RW-IpR"/> <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> </items>
<connections> <connections>
<outlet property="accountsButton" destination="8yj-m6-1L9" id="N4i-Zw-wUL"/> <outlet property="accountsButton" destination="8yj-m6-1L9" id="N4i-Zw-wUL"/>
<outlet property="activityIndicator" destination="c6R-RW-IpR" id="JKZ-46-2hN"/> <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"/> <outlet property="wellnessButton" destination="Vth-km-gVm" id="jaB-M2-lvs"/>
</connections> </connections>
</controller> </controller>
Expand Down Expand Up @@ -121,6 +123,7 @@
<controller identifier="AccountDetails" id="yrN-yp-gkH" customClass="AccountDetailsInterfaceController" customModule="SynchronyFinancial_WatchKit_Extension"> <controller identifier="AccountDetails" id="yrN-yp-gkH" customClass="AccountDetailsInterfaceController" customModule="SynchronyFinancial_WatchKit_Extension">
<items> <items>
<imageView alignment="left" hidden="YES" id="diX-Fh-Why"/> <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"> <label width="1" alignment="left" text="Label" textAlignment="center" id="qzl-GE-bpZ">
<fontDescription key="font" style="UICTFontTextStyleHeadline"/> <fontDescription key="font" style="UICTFontTextStyleHeadline"/>
</label> </label>
Expand Down Expand Up @@ -149,6 +152,7 @@
<outlet property="activityIndicator" destination="diX-Fh-Why" id="Syr-8v-cTP"/> <outlet property="activityIndicator" destination="diX-Fh-Why" id="Syr-8v-cTP"/>
<outlet property="availableFundsLabel" destination="q0b-tb-dAb" id="rcl-Tl-bDh"/> <outlet property="availableFundsLabel" destination="q0b-tb-dAb" id="rcl-Tl-bDh"/>
<outlet property="balanceLabel" destination="mdb-QX-GuO" id="2Dj-nO-AM8"/> <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="nextPaymentDueLabel" destination="CPc-qk-Z2y" id="AzY-pn-EMY"/>
<outlet property="nextPaymentTitleLabel" destination="rxs-Zb-naU" id="IDH-8E-WWm"/> <outlet property="nextPaymentTitleLabel" destination="rxs-Zb-naU" id="IDH-8E-WWm"/>
<outlet property="payButton" destination="zeF-ky-mkm" id="v5U-Y5-shh"/> <outlet property="payButton" destination="zeF-ky-mkm" id="v5U-Y5-shh"/>
Expand Down
Expand Up @@ -14,6 +14,7 @@ class AccountDetailsInterfaceController: WKInterfaceController {
var dictForAcct: [String: Account] = [:] var dictForAcct: [String: Account] = [:]
var transactionDict: [String: [Transaction]] = [:] var transactionDict: [String: [Transaction]] = [:]


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


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


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

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

0 comments on commit 00d3583

Please sign in to comment.