Skip to content

Commit

Permalink
Merge pull request #2 from rrk12005/SWF-2-basic-ui
Browse files Browse the repository at this point in the history
SWF-2-basic-ui
  • Loading branch information
jod13004 authored Nov 29, 2018
2 parents 1afb768 + ea5c6b8 commit aa9165e
Show file tree
Hide file tree
Showing 11 changed files with 149 additions and 154 deletions.
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 not shown.
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 not shown.
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>

This file was deleted.

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

This file was deleted.

This file was deleted.

Loading

0 comments on commit aa9165e

Please sign in to comment.