Skip to content

Commit

Permalink
Set up initial UI base
Browse files Browse the repository at this point in the history
- created `MainMenuInterfaceController` to serve as class for the main menu
- placed and set up buttons to direct to Accounts section and Wellness section
- added `WKInterfaceController` as a destination for each of the button segues
  • Loading branch information
ahm11003 committed Nov 22, 2018
1 parent aff4104 commit f0c954c
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?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">
<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>
Expand All @@ -8,5 +8,60 @@
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="14460.16"/>
</dependencies>
<scenes/>
<scenes>
<!--Main Menu Interface Controller-->
<scene sceneID="grn-eT-Mhz">
<objects>
<controller fullScreen="YES" id="Qge-pO-HLc" customClass="MainMenuInterfaceController" customModule="SynchronyFinancial_WatchKit_App" customModuleProvider="target">
<items>
<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>
</controller>
</objects>
<point key="canvasLocation" x="105" y="102"/>
</scene>
<!--Interface Controller-->
<scene sceneID="7P2-y3-sP1">
<objects>
<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="414" y="258"/>
</scene>
<!--Interface Controller-->
<scene sceneID="5Qe-Th-pL8">
<objects>
<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="414" y="-56"/>
</scene>
</scenes>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// 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 {

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

}
12 changes: 8 additions & 4 deletions SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
objects = {

/* Begin PBXBuildFile section */
673F396E21A644570051469E /* MainMenuInterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 673F396C21A644460051469E /* MainMenuInterfaceController.swift */; };
673F397021A652A00051469E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 673F396F21A652A00051469E /* Assets.xcassets */; };
67BAC269219E254700713FEF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67BAC268219E254700713FEF /* AppDelegate.swift */; };
67BAC26E219E254700713FEF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 67BAC26C219E254700713FEF /* Main.storyboard */; };
67BAC270219E254800713FEF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 67BAC26F219E254800713FEF /* Assets.xcassets */; };
67BAC273219E254800713FEF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 67BAC271219E254800713FEF /* LaunchScreen.storyboard */; };
67BAC278219E254800713FEF /* SynchronyFinancial WatchKit App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 67BAC277219E254800713FEF /* SynchronyFinancial WatchKit App.app */; };
67BAC27E219E254800713FEF /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 67BAC27C219E254800713FEF /* Interface.storyboard */; };
67BAC280219E254800713FEF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 67BAC27F219E254800713FEF /* Assets.xcassets */; };
67BAC287219E254900713FEF /* SynchronyFinancial WatchKit Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 67BAC286219E254900713FEF /* SynchronyFinancial WatchKit Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
67BAC28E219E254900713FEF /* ExtensionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67BAC28D219E254900713FEF /* ExtensionDelegate.swift */; };
67BAC292219E254900713FEF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 67BAC291219E254900713FEF /* Assets.xcassets */; };
Expand Down Expand Up @@ -62,6 +63,8 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
673F396C21A644460051469E /* MainMenuInterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenuInterfaceController.swift; sourceTree = "<group>"; };
673F396F21A652A00051469E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
67BAC265219E254700713FEF /* SynchronyFinancial.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SynchronyFinancial.app; sourceTree = BUILT_PRODUCTS_DIR; };
67BAC268219E254700713FEF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
67BAC26D219E254700713FEF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
Expand All @@ -70,7 +73,6 @@
67BAC274219E254800713FEF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
67BAC277219E254800713FEF /* SynchronyFinancial WatchKit App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SynchronyFinancial WatchKit App.app"; sourceTree = BUILT_PRODUCTS_DIR; };
67BAC27D219E254800713FEF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = "<group>"; };
67BAC27F219E254800713FEF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
67BAC281219E254800713FEF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
67BAC286219E254900713FEF /* SynchronyFinancial WatchKit Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "SynchronyFinancial WatchKit Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
67BAC28D219E254900713FEF /* ExtensionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -132,7 +134,7 @@
isa = PBXGroup;
children = (
67BAC27C219E254800713FEF /* Interface.storyboard */,
67BAC27F219E254800713FEF /* Assets.xcassets */,
673F396F21A652A00051469E /* Assets.xcassets */,
67BAC281219E254800713FEF /* Info.plist */,
);
path = "SynchronyFinancial WatchKit App";
Expand All @@ -141,6 +143,7 @@
67BAC28A219E254900713FEF /* SynchronyFinancial WatchKit Extension */ = {
isa = PBXGroup;
children = (
673F396C21A644460051469E /* MainMenuInterfaceController.swift */,
67BAC28D219E254900713FEF /* ExtensionDelegate.swift */,
67BAC291219E254900713FEF /* Assets.xcassets */,
67BAC293219E254900713FEF /* Info.plist */,
Expand Down Expand Up @@ -260,7 +263,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
67BAC280219E254800713FEF /* Assets.xcassets in Resources */,
673F397021A652A00051469E /* Assets.xcassets in Resources */,
67BAC27E219E254800713FEF /* Interface.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -289,6 +292,7 @@
buildActionMask = 2147483647;
files = (
67BAC28E219E254900713FEF /* ExtensionDelegate.swift in Sources */,
673F396E21A644570051469E /* MainMenuInterfaceController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

0 comments on commit f0c954c

Please sign in to comment.