Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
SynchronyFinancialWatchApp/SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentDetailInterfaceController.swift
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
54 lines (45 sloc)
1.5 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PaymentDetailInterfaceController.swift | |
// SynchronyFinancial | |
// | |
// Created by Monday on 2019/03/24. | |
// Copyright © 2019 Alan Maynard. All rights reserved. | |
// | |
import WatchKit | |
import Foundation | |
class PaymentDetailInterfaceController: WKInterfaceController { | |
var selectedAccount: Account? | |
var dictForAcct: [String: Account] = [:] | |
@IBOutlet weak var detailButton: WKInterfaceButton! | |
@IBOutlet weak var amount: WKInterfaceLabel! | |
@IBAction func paymentButton() { | |
} | |
override func awake(withContext context: Any?) { | |
super.awake(withContext: context) | |
// Configure interface objects here. | |
} | |
override func contextForSegue(withIdentifier segueIdentifier: String) -> Any? { | |
if (segueIdentifier == "PayAll" || segueIdentifier == "PayMinimum"){ | |
if let acct = selectedAccount { | |
dictForAcct.updateValue(acct, forKey: "acct") | |
return dictForAcct | |
} | |
} | |
return nil | |
} | |
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() | |
} | |
private func configure() { | |
//if acct { | |
detailButton.setTitle("Payment: Bank Of America") | |
amount.setText("") | |
paymentButton.setTitle("Pay now!") | |
//} | |
} | |
} |