Browse Source

homeviewcontroller strings managed

pull/1/head
gme_2 6 years ago
parent
commit
6c9afcbe2e
  1. 7
      GMERemittance/Module/Home/User Interface/View/Cell/HomeCollectionTableViewCell.swift
  2. 10
      GMERemittance/Module/Home/User Interface/View/Cell/HomeRemainingLimitTableViewCell.swift
  3. 11
      GMERemittance/Module/Home/User Interface/View/Home.storyboard

7
GMERemittance/Module/Home/User Interface/View/Cell/HomeCollectionTableViewCell.swift

@ -20,6 +20,13 @@ struct MenuNotificationName {
class HomeCollectionTableViewCell: UITableViewCell, UICollectionViewDelegateFlowLayout {
struct StringConstants {
static let sendMoneyText = "Send Money"
static let todaysRateText = "Today's Rate"
static let transactionReportText = "Transaction Report"
static let walletStatement = "GME Wallet Statement"
}
enum CollectionMenus: Int {
case sendMoney = 0
case mobileRecharge

10
GMERemittance/Module/Home/User Interface/View/Cell/HomeRemainingLimitTableViewCell.swift

@ -10,10 +10,15 @@ import UIKit
class HomeRemainingLimitTableViewCell: UITableViewCell {
struct StringConstant {
static let yearlyLimit = "Remaining Yearly Limit"
}
@IBOutlet weak var pointBackgroundView: UIView!
@IBOutlet weak var amountLabel: UILabel!
@IBOutlet weak var rewardPointAmountLabel: UILabel!
@IBOutlet weak var userNameLabel: UILabel!
@IBOutlet weak var remainingYearlyLabel: UILabel!
var user: User?
@ -27,6 +32,11 @@ class HomeRemainingLimitTableViewCell: UITableViewCell {
let limits = UserDefaults.standard.string(forKey: UserKeys.yearlyLimit)
self.amountLabel.text = limits
self.userNameLabel.text = user?.firstName?.capitalized
configureText()
}
private func configureText() {
self.remainingYearlyLabel.text = StringConstant.yearlyLimit
}
@objc private func getYearlyLimitNotificationName() -> Notification.Name {

11
GMERemittance/Module/Home/User Interface/View/Home.storyboard

@ -1,13 +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" colorMatched="YES" initialViewController="HSb-ou-7T5">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="HSb-ou-7T5">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<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>
@ -62,7 +60,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your document is in verification process. This will not take long. Thereafter you can enjoy GME online service." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rwJ-pQ-p9z">
<rect key="frame" x="103" y="43" width="196" height="36"/>
<rect key="frame" x="103" y="43" width="195" height="36"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -239,6 +237,7 @@
<connections>
<outlet property="amountLabel" destination="8Bf-q6-azV" id="KaT-Ma-SBd"/>
<outlet property="pointBackgroundView" destination="aUP-ND-ctM" id="M9X-co-v60"/>
<outlet property="remainingYearlyLabel" destination="q5T-Xf-a5s" id="Q5Q-NT-Wr6"/>
<outlet property="rewardPointAmountLabel" destination="qFV-c8-8UI" id="YKL-6A-gRk"/>
<outlet property="userNameLabel" destination="HSv-Iz-JvY" id="aE5-dT-TQa"/>
</connections>
@ -394,7 +393,7 @@
</scene>
</scenes>
<resources>
<image name="ic-home" width="20" height="20"/>
<image name="ic-home" width="20.5" height="20.5"/>
<image name="ic_cross" width="12" height="12"/>
<image name="ic_dragNdrop" width="10" height="10"/>
<image name="ic_home_payoutLocation" width="40" height="40"/>

Loading…
Cancel
Save