Browse Source

auto refund strings managed

pull/1/head
gme_2 6 years ago
parent
commit
7a85de5672
  1. 25
      GMERemittance/Module/Auto refund/AutoRefundsViewController.swift
  2. 8
      GMERemittance/Module/Auto refund/autoRefund.storyboard

25
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()
}

8
GMERemittance/Module/Auto refund/autoRefund.storyboard

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina5_5" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@ -234,9 +234,13 @@
<connections>
<outlet property="amountTextfield" destination="ArH-OD-ene" id="iTb-Qr-lL7"/>
<outlet property="availableBalanceLabel" destination="Neh-19-adB" id="Xid-iK-Z2d"/>
<outlet property="availableBalanceTitleLabel" destination="7A5-2S-KR0" id="mwJ-mk-e20"/>
<outlet property="backgroundView" destination="ZWG-NA-5Ws" id="DAY-P3-fbk"/>
<outlet property="countryBackgroundView" destination="UE2-ls-4MK" id="FQX-JO-Q5I"/>
<outlet property="refundButton" destination="bI0-bR-vnj" id="so3-NK-Af2"/>
<outlet property="refundChargeLabel" destination="eby-hG-WLU" id="IYd-9d-vjc"/>
<outlet property="refundChargeTitleLabel" destination="Idq-n3-KTT" id="s1G-kn-7lZ"/>
<outlet property="yourRefundLabel" destination="MEb-H7-NvI" id="eT0-35-edC"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Yjd-qR-1Db" userLabel="First Responder" sceneMemberID="firstResponder"/>

Loading…
Cancel
Save