diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard b/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard
index 31d93dc..28bb61d 100644
--- a/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard
+++ b/SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard
@@ -100,7 +100,6 @@
-
@@ -113,10 +112,10 @@
-
+
-
+
-
+
@@ -168,7 +167,7 @@
-
+
@@ -190,12 +189,12 @@
-
+
-
+
-
+
@@ -219,7 +218,7 @@
-
+
diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/AccountTableInterfaceController.swift b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/AccountTableInterfaceController.swift
index baa7b73..b72e5f9 100644
--- a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/AccountTableInterfaceController.swift
+++ b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/AccountTableInterfaceController.swift
@@ -12,6 +12,7 @@ import Foundation
class AccountTableInterfaceController: WKInterfaceController {
var accounts: [Account] = []
var acctDict: [String: Account] = [:]
+ var transactionDict: [String: [Transaction]] = [:]
@IBOutlet weak var accountTable: WKInterfaceTable!
override func awake(withContext context: Any?) {
@@ -41,6 +42,11 @@ class AccountTableInterfaceController: WKInterfaceController {
return nil
}
+ override func table(_ table: WKInterfaceTable, didSelectRowAt rowIndex: Int) {
+ acctDict.updateValue(accounts[rowIndex], forKey: "acct")
+ self.presentController(withNames: ["AccountDetails", "Transactions"], contexts: [self.acctDict, self.transactionDict])
+ }
+
private func configureRows() {
accountTable.setNumberOfRows(accounts.count, withRowType: "account")