-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rrk12005/SWF-2-basic-ui
SWF-2-basic-ui
- Loading branch information
Showing
11 changed files
with
149 additions
and
154 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...ncial/SynchronyFinancial WatchKit App/Assets.xcassets/account_menu.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "account_menu.pdf", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
}, | ||
"properties" : { | ||
"auto-scaling" : "auto" | ||
} | ||
} |
Binary file added
BIN
+207 KB
...al/SynchronyFinancial WatchKit App/Assets.xcassets/account_menu.imageset/account_menu.pdf
Binary file not shown.
24 changes: 24 additions & 0 deletions
24
...cial/SynchronyFinancial WatchKit App/Assets.xcassets/wellness_menu.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "wellness_menu.pdf", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
}, | ||
"properties" : { | ||
"auto-scaling" : "auto" | ||
} | ||
} |
Binary file added
BIN
+207 KB
.../SynchronyFinancial WatchKit App/Assets.xcassets/wellness_menu.imageset/wellness_menu.pdf
Binary file not shown.
80 changes: 52 additions & 28 deletions
80
SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,71 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="14256" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="AgC-eL-Hgc"> | ||
<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"> | ||
<device id="watch38" orientation="portrait"> | ||
<adaptation id="fullscreen"/> | ||
</device> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14243"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="14219"/> | ||
<deployment identifier="watchOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="14460.16"/> | ||
</dependencies> | ||
<scenes> | ||
<!--Interface Controller--> | ||
<scene sceneID="aou-V4-d1y"> | ||
<!--Main Menu Interface Controller--> | ||
<scene sceneID="grn-eT-Mhz"> | ||
<objects> | ||
<controller id="AgC-eL-Hgc" customClass="InterfaceController" customModuleProvider="target"/> | ||
</objects> | ||
<point key="canvasLocation" x="220" y="345"/> | ||
</scene> | ||
<!--Static Notification Interface Controller--> | ||
<scene sceneID="AEw-b0-oYE"> | ||
<objects> | ||
<notificationController id="YCC-NB-fut"> | ||
<controller fullScreen="YES" id="Qge-pO-HLc" customClass="MainMenuInterfaceController" customModule="SynchronyFinancial_WatchKit_App" customModuleProvider="target"> | ||
<items> | ||
<label alignment="left" text="Alert Label" numberOfLines="0" id="IdU-wH-bcW"/> | ||
<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"/> | ||
<label alignment="center" text="Accounts" id="Ohi-ve-NfC"/> | ||
</items> | ||
</group> | ||
<connections> | ||
<segue destination="Rpu-25-8st" kind="push" identifier="toAccounts" id="f1W-Bx-IrV"/> | ||
</connections> | ||
</button> | ||
<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"/> | ||
<label alignment="center" verticalAlignment="bottom" text="Wellness" id="gpF-4d-eKv"/> | ||
</items> | ||
</group> | ||
<connections> | ||
<segue destination="FsK-xr-8Fi" kind="push" identifier="toWellness" id="IWu-2V-Dh4"/> | ||
</connections> | ||
</button> | ||
</items> | ||
<notificationCategory key="notificationCategory" identifier="myCategory" id="JfB-70-Muf"/> | ||
<connections> | ||
<outlet property="notificationAlertLabel" destination="IdU-wH-bcW" id="JKC-fr-R95"/> | ||
<segue destination="4sK-HA-Art" kind="relationship" relationship="dynamicNotificationInterface" id="kXh-Jw-8B1"/> | ||
<segue destination="eXb-UN-Cd0" kind="relationship" relationship="dynamicInteractiveNotificationInterface" id="mpB-YA-K8N"/> | ||
<outlet property="accountsButton" destination="8yj-m6-1L9" id="N4i-Zw-wUL"/> | ||
<outlet property="wellnessButton" destination="Vth-km-gVm" id="jaB-M2-lvs"/> | ||
</connections> | ||
</notificationController> | ||
</controller> | ||
</objects> | ||
<point key="canvasLocation" x="220" y="643"/> | ||
<point key="canvasLocation" x="105" y="102"/> | ||
</scene> | ||
<!--Notification Controller--> | ||
<scene sceneID="ZPc-GJ-vnh"> | ||
<!--Interface Controller--> | ||
<scene sceneID="7P2-y3-sP1"> | ||
<objects> | ||
<controller id="4sK-HA-Art" customClass="NotificationController" customModuleProvider="target"/> | ||
<controller id="FsK-xr-8Fi"> | ||
<items> | ||
<label width="1" alignment="center" text="Credit Wellness" textAlignment="center" id="eqA-XH-rlH"/> | ||
</items> | ||
</controller> | ||
</objects> | ||
<point key="canvasLocation" x="468" y="643"/> | ||
<point key="canvasLocation" x="414" y="258"/> | ||
</scene> | ||
<!--Notification Controller--> | ||
<scene sceneID="Niz-AI-uX2"> | ||
<!--Interface Controller--> | ||
<scene sceneID="5Qe-Th-pL8"> | ||
<objects> | ||
<controller id="eXb-UN-Cd0" customClass="NotificationController" customModuleProvider="target"/> | ||
<controller id="Rpu-25-8st"> | ||
<items> | ||
<label width="1" alignment="center" text="Accounts" textAlignment="center" id="JYm-yy-xrH"/> | ||
</items> | ||
</controller> | ||
</objects> | ||
<point key="canvasLocation" x="468" y="345"/> | ||
<point key="canvasLocation" x="414" y="-56"/> | ||
</scene> | ||
</scenes> | ||
</document> |
31 changes: 0 additions & 31 deletions
31
SynchronyFinancial/SynchronyFinancial WatchKit Extension/InterfaceController.swift
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
SynchronyFinancial/SynchronyFinancial WatchKit Extension/MainMenuInterfaceController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// MainMenuInterfaceController.swift | ||
// SynchronyFinancial WatchKit Extension | ||
// | ||
// Created by Alan Maynard on 11/21/18. | ||
// Copyright © 2018 Alan Maynard. All rights reserved. | ||
// | ||
|
||
import WatchKit | ||
import Foundation | ||
|
||
class MainMenuInterfaceController: WKInterfaceController { | ||
@IBOutlet weak var accountsButton: WKInterfaceButton! | ||
@IBOutlet weak var wellnessButton: WKInterfaceButton! | ||
|
||
override func awake(withContext context: Any?) { | ||
super.awake(withContext: context) | ||
|
||
// Configure interface objects here. | ||
} | ||
|
||
override func willActivate() { | ||
// This method is called when watch view controller is about to be visible to user | ||
super.willActivate() | ||
} | ||
|
||
override func didDeactivate() { | ||
// This method is called when watch view controller is no longer visible | ||
super.didDeactivate() | ||
} | ||
|
||
override func contextForSegue(withIdentifier segueIdentifier: String) -> Any? { | ||
if segueIdentifier == "toAccounts" { | ||
// we will probably want to do some setup prior to presenting Accounts | ||
} else if segueIdentifier == "toWellness" { | ||
// we will probably want to do some setup prior to presenting Wellness | ||
} | ||
|
||
return nil | ||
} | ||
} |
38 changes: 0 additions & 38 deletions
38
SynchronyFinancial/SynchronyFinancial WatchKit Extension/NotificationController.swift
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
SynchronyFinancial/SynchronyFinancial WatchKit Extension/PushNotificationPayload.apns
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.