From 7a85de5672f1a9acb2d49e8ba79f71e8181be8bb Mon Sep 17 00:00:00 2001 From: gme_2 Date: Mon, 14 Jan 2019 11:00:34 +0900 Subject: [PATCH] auto refund strings managed --- .../AutoRefundsViewController.swift | 25 ++++++++++++++++++- .../Module/Auto refund/autoRefund.storyboard | 8 ++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/GMERemittance/Module/Auto refund/AutoRefundsViewController.swift b/GMERemittance/Module/Auto refund/AutoRefundsViewController.swift index 23b9ae09..725428c0 100644 --- a/GMERemittance/Module/Auto refund/AutoRefundsViewController.swift +++ b/GMERemittance/Module/Auto refund/AutoRefundsViewController.swift @@ -9,8 +9,23 @@ import UIKit class AutoRefundsViewController: UIViewController { + + struct StringConstants { + static let headerTitleText = "HOW MUCH WOULD YOU LIKE TO REFUND?" + static let availableBalanceTitleText = "AVAILABLE BALANCE : " + static let refundChargeTitleTxty = "PRE REFUND BANK CHARGE : " + static let navigationTitle = "Auto Refund " + static let yourRefundText = "You Refund" + static let refundButtonText = "Refund" + } + + @IBOutlet weak var backgroundView: UIView! @IBOutlet weak var countryBackgroundView: UIView! + @IBOutlet weak var availableBalanceTitleLabel: UILabel! + @IBOutlet weak var refundChargeTitleLabel: UILabel! + @IBOutlet weak var yourRefundLabel: UILabel! + @IBOutlet weak var refundButton: UIButton! @IBOutlet weak var availableBalanceLabel: UILabel! @IBOutlet weak var refundChargeLabel: UILabel! @@ -38,11 +53,19 @@ class AutoRefundsViewController: UIViewController { self.backgroundView.layer.borderWidth = 0.5 self.backgroundView.layer.cornerRadius = 6 self.countryBackgroundView.layer.cornerRadius = 6 + configureText() + } + + private func configureText() { + self.availableBalanceTitleLabel.text = StringConstants.availableBalanceTitleText + self.refundChargeLabel.text = StringConstants.refundChargeTitleTxty + self.yourRefundLabel.text = StringConstants.yourRefundText + self.refundButton.setTitle(StringConstants.refundButtonText, for: UIControlState.normal) } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) - self.navigationItem.title = "Auto Refund " + self.navigationItem.title = StringConstants.navigationTitle fetchInfo() } diff --git a/GMERemittance/Module/Auto refund/autoRefund.storyboard b/GMERemittance/Module/Auto refund/autoRefund.storyboard index 491bd7d3..8bf24f8e 100644 --- a/GMERemittance/Module/Auto refund/autoRefund.storyboard +++ b/GMERemittance/Module/Auto refund/autoRefund.storyboard @@ -1,11 +1,11 @@ - + - + @@ -234,9 +234,13 @@ + + + +