Skip to content

SWF-2-basic-ui #2

Merged
merged 5 commits into from
Nov 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added outlets for buttons and contextForSegue method to handle navi…
…gation
ahm11003 committed Nov 22, 2018
commit 768ee70944c1beb3b7f8128205b0fa661142050c
Original file line number Diff line number Diff line change
@@ -37,6 +37,10 @@
</connections>
</button>
</items>
<connections>
<outlet property="accountsButton" destination="8yj-m6-1L9" id="N4i-Zw-wUL"/>
<outlet property="wellnessButton" destination="Vth-km-gVm" id="jaB-M2-lvs"/>
</connections>
</controller>
</objects>
<point key="canvasLocation" x="105" y="102"/>
Original file line number Diff line number Diff line change
@@ -9,8 +9,9 @@
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)
@@ -28,4 +29,13 @@ class MainMenuInterfaceController: WKInterfaceController {
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
}
}