Browse Source

different verification title

pull/1/head
gme_2 6 years ago
parent
commit
cc400ded0e
  1. 2
      GMERemittance/AppDelegate.swift
  2. 19
      GMERemittance/Module/Home/User Interface/View/Home.storyboard
  3. 3
      GMERemittance/Module/Home/User Interface/View/HomeViewController.swift

2
GMERemittance/AppDelegate.swift

@ -19,7 +19,7 @@ import AlamofireNetworkActivityLogger
import IQKeyboardManagerSwift import IQKeyboardManagerSwift
import LGSideMenuController import LGSideMenuController
let server: Server = .live
let server: Server = .stagging

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

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" 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="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="HSb-ou-7T5">
<device id="retina4_7" orientation="portrait"> <device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/> <adaptation id="fullscreen"/>
</device> </device>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <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="14283.14"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
@ -26,7 +24,7 @@
<!--Home--> <!--Home-->
<scene sceneID="R60-Pu-Hpy"> <scene sceneID="R60-Pu-Hpy">
<objects> <objects>
<viewController storyboardIdentifier="HomeViewController" title="Home" id="HSb-ou-7T5" customClass="HomeViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="HomeViewController" title="Home" id="HSb-ou-7T5" customClass="HomeViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides> <layoutGuides>
<viewControllerLayoutGuide type="top" id="y1H-iV-BwG"/> <viewControllerLayoutGuide type="top" id="y1H-iV-BwG"/>
<viewControllerLayoutGuide type="bottom" id="PYB-Kq-ghm"/> <viewControllerLayoutGuide type="bottom" id="PYB-Kq-ghm"/>
@ -62,7 +60,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </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"> <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"/> <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"/> <color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
@ -115,7 +113,7 @@
<rect key="frame" x="0.0" y="100" width="375" height="518"/> <rect key="frame" x="0.0" y="100" width="375" height="518"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes> <prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="HomeRemainingLimitTableViewCell" rowHeight="115" id="rcn-u6-1gx" customClass="HomeRemainingLimitTableViewCell" customModule="GMERemittance" customModuleProvider="target">
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="HomeRemainingLimitTableViewCell" rowHeight="115" id="rcn-u6-1gx" customClass="HomeRemainingLimitTableViewCell" customModule="GME_Remit" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="375" height="115"/> <rect key="frame" x="0.0" y="28" width="375" height="115"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="rcn-u6-1gx" id="ekT-Zr-ohe"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="rcn-u6-1gx" id="ekT-Zr-ohe">
@ -243,7 +241,7 @@
<outlet property="userNameLabel" destination="HSv-Iz-JvY" id="aE5-dT-TQa"/> <outlet property="userNameLabel" destination="HSv-Iz-JvY" id="aE5-dT-TQa"/>
</connections> </connections>
</tableViewCell> </tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="HomeCollectionTableViewCell" rowHeight="250" id="va0-Yj-PKZ" userLabel="CollectionTableCell" customClass="HomeCollectionTableViewCell" customModule="GMERemittance" customModuleProvider="target">
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="HomeCollectionTableViewCell" rowHeight="250" id="va0-Yj-PKZ" userLabel="CollectionTableCell" customClass="HomeCollectionTableViewCell" customModule="GME_Remit" customModuleProvider="target">
<rect key="frame" x="0.0" y="143" width="375" height="250"/> <rect key="frame" x="0.0" y="143" width="375" height="250"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="va0-Yj-PKZ" id="UgU-Jo-DQf"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="va0-Yj-PKZ" id="UgU-Jo-DQf">
@ -260,7 +258,7 @@
<inset key="sectionInset" minX="10" minY="10" maxX="10" maxY="10"/> <inset key="sectionInset" minX="10" minY="10" maxX="10" maxY="10"/>
</collectionViewFlowLayout> </collectionViewFlowLayout>
<cells> <cells>
<collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="HomeCollectionCollectionViewCell" id="Etq-JH-rVI" customClass="HomeCollectionCollectionViewCell" customModule="GMERemittance" customModuleProvider="target">
<collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="HomeCollectionCollectionViewCell" id="Etq-JH-rVI" customClass="HomeCollectionCollectionViewCell" customModule="GME_Remit" customModuleProvider="target">
<rect key="frame" x="92.5" y="10" width="170" height="173"/> <rect key="frame" x="92.5" y="10" width="170" height="173"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO"> <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO">
@ -355,6 +353,7 @@
<outlet property="verificationNoticeHeightConstraint" destination="VxG-Dr-LRY" id="80H-Oh-yg2"/> <outlet property="verificationNoticeHeightConstraint" destination="VxG-Dr-LRY" id="80H-Oh-yg2"/>
<outlet property="verificationNoticeView" destination="alB-Pe-T92" id="1Di-cQ-gdP"/> <outlet property="verificationNoticeView" destination="alB-Pe-T92" id="1Di-cQ-gdP"/>
<outlet property="verificationText" destination="rwJ-pQ-p9z" id="40u-EV-EKU"/> <outlet property="verificationText" destination="rwJ-pQ-p9z" id="40u-EV-EKU"/>
<outlet property="verificationTitleLabel" destination="pcY-xj-hQb" id="TA6-79-Fl5"/>
</connections> </connections>
</viewController> </viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/>
@ -381,7 +380,7 @@
</scene> </scene>
</scenes> </scenes>
<resources> <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_cross" width="12" height="12"/>
<image name="ic_dragNdrop" width="10" height="10"/> <image name="ic_dragNdrop" width="10" height="10"/>
<image name="ic_home_payoutLocation" width="40" height="40"/> <image name="ic_home_payoutLocation" width="40" height="40"/>

3
GMERemittance/Module/Home/User Interface/View/HomeViewController.swift

@ -28,6 +28,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout {
@IBOutlet weak var verificationCloseButton: UIButton! @IBOutlet weak var verificationCloseButton: UIButton!
@IBOutlet weak var verificationText: UILabel! @IBOutlet weak var verificationText: UILabel!
@IBOutlet var tapGuesture: UITapGestureRecognizer! @IBOutlet var tapGuesture: UITapGestureRecognizer!
@IBOutlet weak var verificationTitleLabel: UILabel!
// MARK: Properties // MARK: Properties
var refreshControl: UIRefreshControl? var refreshControl: UIRefreshControl?
@ -256,9 +257,11 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout {
private func setVerificationText() { private func setVerificationText() {
if didNotSubmitKycAndNotVerified() { if didNotSubmitKycAndNotVerified() {
verificationTitleLabel.text = "Complete Your registration process"
self.verificationText.text = "Kindly complete your registration process with us to start using GME services." self.verificationText.text = "Kindly complete your registration process with us to start using GME services."
}else }else
if didSubmitKycAndNotVerified() { if didSubmitKycAndNotVerified() {
verificationTitleLabel.text = "Verification pending!"
self.verificationText.text = "Your registration request is in approval process. You will soon be able to use GME services." self.verificationText.text = "Your registration request is in approval process. You will soon be able to use GME services."
} }

Loading…
Cancel
Save