Browse Source

auto debit view controller added

pull/1/head
gme_2 6 years ago
parent
commit
0a66e6463a
  1. 1
      GMERemittance/Module/AutoDebit/User Interface/View/AutoDebit.storyboard
  2. 9
      GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift

1
GMERemittance/Module/AutoDebit/User Interface/View/AutoDebit.storyboard

@ -156,6 +156,7 @@
</view>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<outlet property="addAccountLabel" destination="3RL-rJ-PRr" id="AKQ-mV-qwp"/>
<outlet property="labelSwipeInfo" destination="0mw-Yn-hpm" id="B2Y-Kh-ySQ"/>
<outlet property="tableView" destination="LTI-ab-Zaj" id="7C8-v9-9H6"/>
<outlet property="viewAddAccount" destination="L6q-bk-mo5" id="x7L-1n-OD1"/>

9
GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift

@ -19,6 +19,8 @@ class AutoDebitViewController: UIViewController {
static let confirmationText = "Are you sure?"
static let deleteText = "Delete"
static let editText = "Edit"
static let addAccountText = "Add Auto Debit Account"
static let swipeInfoText = "Swipe left to “Edit” or “Delete” account."
}
// MARK:- IBOutlets
@ -26,6 +28,7 @@ class AutoDebitViewController: UIViewController {
@IBOutlet weak var viewAddAccount: UIView! // this is the view that contains add reciepient. should be header
@IBOutlet weak var labelSwipeInfo: UILabel!
@IBOutlet weak var addAccountLabel: UILabel!
var presenter: AutoDebitPresenter?
// MARK:- properties
var kftcDetail: KFTCModel? {
@ -134,6 +137,12 @@ class AutoDebitViewController: UIViewController {
private func setupDelegates() {
self.tableView.delegate = self
self.tableView.dataSource = self
configureText()
}
private func configureText() {
self.addAccountLabel.text = StringConstants.addAccountText
self.labelSwipeInfo.text = StringConstants.swipeInfoText
}
private func showLanguageSelection() {

Loading…
Cancel
Save