Skip to content

Swf 10 account details #8

Merged
merged 14 commits into from Mar 26, 2019
Merged

Swf 10 account details #8

merged 14 commits into from Mar 26, 2019

Conversation

ahm11003
Copy link
Collaborator

  • Set up account table to hold the user's different accounts
  • Set up account details screen to display total balance, available balance, next payment due date, etc

tiw15001 and others added 9 commits February 13, 2019 17:31
- made `Account.swift` target iOS and watchOS projects
- created function to populate with “dummy” accounts
- created function to configure each row in table
- implemented `contextForSegue` function to allow us to “pass” the selected account to the next interface controller
- change how we get the account before it is passed to account details
- wrote methods to set up account details screen with the account object that is received

private func populateDemoData() {
//swiftlint:disable line_length
accounts.append(Account(accountNumber: "TD Bank", limit: 500.00, transactions: [], paymentDueDate: Date(), cycleEndDate: Date()))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These accounts were created for illustrative purposes, and once we get actual accounts from synchrony's mock environment these can be safely removed

- `TransactionsInterfactController` will hold a table of recent transactions
- `TransactionCell` provides a model for our table cell
- Added TransactionsInterfaceController
- In order to have a page based navigation allowing swipe between Account Details and Transactions, it was necessary to change the segue from the Accounts Table to “modal” type
- As a result of the change to modal presentation, the function we must override has changed
- Instead of returning the context for the next interface controller, we return an array of contexts, each corresponding to the interface controllers in the order they appear in the navigation stack (Account details is first, transactions is now second)
- once web service is set up, transactions should be passed to TransactionsInterfactController from this function
@rrk12005
Copy link
Owner

looks good

@rrk12005 rrk12005 merged commit 8ad372f into master Mar 26, 2019
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants