Browse Source

Prepared OpenBank

pull/1/head
InKwon James Kim 5 years ago
parent
commit
3d9abe28c3
  1. 23
      GME Remit/Modules/Home/User Interface/View/Cell/HomeCollectionTableViewCell.swift
  2. 121
      GME Remit/Modules/Home/User Interface/View/Home.storyboard
  3. 3
      GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift

23
GME Remit/Modules/Home/User Interface/View/Cell/HomeCollectionTableViewCell.swift

@ -59,6 +59,7 @@ class HomeCollectionTableViewCell: UITableViewCell, UICollectionViewDelegateFlow
// Initialization code
self.collectionView.delegate = self
self.collectionView.dataSource = self
self.collectionView.contentInset = UIEdgeInsets(top: 20, left: 10, bottom: 20, right: 10)
}
func setup() {
@ -130,8 +131,10 @@ class HomeCollectionTableViewCell: UITableViewCell, UICollectionViewDelegateFlow
cardRecharge.title = "Int'l Calling Card Recharge"
cardRecharge.icon = #imageLiteral(resourceName: "ic_menu_domestic")
let menus = [sendMoneyMenu, toadaysRateMenu, domesticRemitMenu,
trackTransferMenu, prepaidPhoneRecharge, cardRecharge]
let menus = [sendMoneyMenu, toadaysRateMenu, domesticRemitMenu, trackTransferMenu]
// TODO: Add PowerCall Menu
//, prepaidPhoneRecharge, cardRecharge]
return menus
}
@ -157,19 +160,11 @@ class HomeCollectionTableViewCell: UITableViewCell, UICollectionViewDelegateFlow
layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAt indexPath: IndexPath
) -> CGSize {
let itemsPerRow: CGFloat = 3
let paddingSpace: CGFloat = CGFloat(15 * (itemsPerRow))
let availableWidth = frame.width - paddingSpace
let widthPerItem = availableWidth / itemsPerRow
return CGSize(width: widthPerItem, height: widthPerItem * 1.1)
}
func collectionView(
_ collectionView: UICollectionView,
layout collectionViewLayout: UICollectionViewLayout,
insetForSectionAt section: Int
) -> UIEdgeInsets {
return UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)
let width = collectionView.frame.width
let itemSize = (width - (collectionView.contentInset.left + collectionView.contentInset.right + 30)) / 2
return CGSize(width: itemSize, height: itemSize)
}
func getCollectionHeightNotificationName() -> Notification.Name {

121
GME Remit/Modules/Home/User Interface/View/Home.storyboard

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="ezt-uK-zb8">
<device id="retina5_5" orientation="portrait" appearance="light"/>
<device id="retina4_0" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
@ -28,11 +28,11 @@
<objects>
<viewController storyboardIdentifier="HomeViewController" title="Home" id="HSb-ou-7T5" customClass="HomeViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="qRs-xH-5Fi">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="alB-Pe-T92">
<rect key="frame" x="0.0" y="44" width="414" height="100"/>
<rect key="frame" x="0.0" y="44" width="320" height="100"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_home_verified" translatesAutoresizingMaskIntoConstraints="NO" id="UD8-ap-8xD">
<rect key="frame" x="24" y="14" width="67" height="72"/>
@ -42,7 +42,7 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Thank you for registering with us!" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="pcY-xj-hQb">
<rect key="frame" x="103" y="20" width="287" height="15"/>
<rect key="frame" x="103" y="20" width="193" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="75Z-As-Aj4"/>
</constraints>
@ -51,13 +51,13 @@
<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" minimumFontSize="8" translatesAutoresizingMaskIntoConstraints="NO" id="rwJ-pQ-p9z">
<rect key="frame" x="103" y="43" width="287" height="23.333333333333329"/>
<rect key="frame" x="103" y="43" width="193" height="35"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="17X-fv-KyB" userLabel="Seperator">
<rect key="frame" x="0.0" y="99.666666666666657" width="414" height="0.3333333333333286"/>
<rect key="frame" x="0.0" y="99.5" width="320" height="0.5"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="bf7-EA-sF4"/>
@ -85,42 +85,42 @@
</connections>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="wXh-zk-jWw">
<rect key="frame" x="0.0" y="144" width="414" height="543"/>
<rect key="frame" x="0.0" y="144" width="320" height="375"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<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="GME_Remit" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="115"/>
<rect key="frame" x="0.0" y="28" width="320" height="115"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="rcn-u6-1gx" id="ekT-Zr-ohe">
<rect key="frame" x="0.0" y="0.0" width="414" height="115"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="115"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="A2Y-eS-2d3">
<rect key="frame" x="0.0" y="0.0" width="414" height="115"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="115"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="wLs-Rj-kxu">
<rect key="frame" x="20" y="20" width="374" height="83.666666666666671"/>
<rect key="frame" x="20" y="20" width="280" height="83.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="ybO-Kz-ezE">
<rect key="frame" x="0.0" y="0.0" width="374" height="41.666666666666664"/>
<rect key="frame" x="0.0" y="0.0" width="280" height="41.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Remaining Yearly Limit" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q5T-Xf-a5s">
<rect key="frame" x="111" y="0.0" width="152" height="17.666666666666668"/>
<rect key="frame" x="64" y="0.0" width="152" height="17.5"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Bold" family="San Francisco Display" pointSize="15"/>
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Ofo-oE-AGa">
<rect key="frame" x="130.66666666666666" y="21.666666666666664" width="113" height="20"/>
<rect key="frame" x="83.5" y="21.5" width="113" height="20"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="87473839" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8Bf-q6-azV">
<rect key="frame" x="0.0" y="0.0" width="75.666666666666671" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="76" height="20"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="17"/>
<color key="textColor" name="ThemeRed"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="USD" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XTv-9z-6sB">
<rect key="frame" x="77.666666666666686" y="0.0" width="35.333333333333343" height="20"/>
<rect key="frame" x="78" y="0.0" width="35" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="35.329999999999998" id="BvD-78-zl2"/>
</constraints>
@ -133,20 +133,20 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4Ze-gK-s6z">
<rect key="frame" x="0.0" y="51.666666666666671" width="374" height="2"/>
<rect key="frame" x="0.0" y="51.5" width="280" height="2"/>
<color key="backgroundColor" name="ThemeSubBackground"/>
<constraints>
<constraint firstAttribute="height" constant="2" id="h7h-4F-Ddy"/>
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Peb-Sn-rcC">
<rect key="frame" x="0.0" y="63.666666666666671" width="374" height="20"/>
<rect key="frame" x="0.0" y="63.5" width="280" height="20"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="dzi-vM-GUm">
<rect key="frame" x="0.0" y="0.0" width="58.666666666666664" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="59" height="20"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="sdfghgfd" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HSv-Iz-JvY">
<rect key="frame" x="0.0" y="0.0" width="58.666666666666664" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="59" height="20"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Bold" family="San Francisco Display" pointSize="14"/>
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
@ -154,16 +154,16 @@
</subviews>
</stackView>
<view opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9M5-BJ-Q2C">
<rect key="frame" x="58.666666666666657" y="0.0" width="315.33333333333337" height="20"/>
<rect key="frame" x="59" y="0.0" width="221" height="20"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="cpr-KK-Kff">
<rect key="frame" x="0.0" y="0.0" width="315.33333333333331" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="221" height="20"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="Bbu-MJ-HYv">
<rect key="frame" x="0.0" y="0.0" width="263.33333333333331" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="169" height="20"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="252" verticalHuggingPriority="251" text="Reward point: " textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rt7-Pa-xst">
<rect key="frame" x="0.0" y="0.0" width="263.33333333333331" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="169" height="20"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<color key="textColor" name="ThemeText"/>
@ -172,16 +172,16 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Rcn-Ft-mI4">
<rect key="frame" x="265.33333333333331" y="0.0" width="50" height="20"/>
<rect key="frame" x="171" y="0.0" width="50" height="20"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="HCB-sr-BJo">
<rect key="frame" x="0.0" y="3.9999999999999991" width="50" height="13.666666666666664"/>
<rect key="frame" x="0.0" y="4" width="50" height="13.5"/>
<subviews>
<view opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="aUP-ND-ctM">
<rect key="frame" x="0.0" y="0.0" width="50" height="13.666666666666666"/>
<rect key="frame" x="0.0" y="0.0" width="50" height="13.5"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="1000" verticalHuggingPriority="251" text="100000" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="6" translatesAutoresizingMaskIntoConstraints="NO" id="qFV-c8-8UI">
<rect key="frame" x="5" y="0.0" width="40" height="13.666666666666666"/>
<rect key="frame" x="5" y="0.0" width="40" height="13.5"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="15" id="71F-b2-SSk"/>
@ -259,17 +259,17 @@
</connections>
</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="GME_Remit" customModuleProvider="target">
<rect key="frame" x="0.0" y="143" width="414" height="250"/>
<rect key="frame" x="0.0" y="143" width="320" height="250"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="va0-Yj-PKZ" id="UgU-Jo-DQf">
<rect key="frame" x="0.0" y="0.0" width="414" height="250"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="250"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b18-X5-UHi">
<rect key="frame" x="0.0" y="0.0" width="414" height="250"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="250"/>
<subviews>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="cS9-wt-rNH">
<rect key="frame" x="10" y="10" width="394" height="230"/>
<rect key="frame" x="10" y="10" width="300" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="0.0" id="V5P-ja-etg">
<size key="itemSize" width="170" height="173"/>
@ -279,14 +279,14 @@
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="HomeCollectionCollectionViewCell" id="Etq-JH-rVI" customClass="HomeCollectionCollectionViewCell" customModule="GME_Remit" customModuleProvider="target">
<rect key="frame" x="10" y="10" width="170" height="173"/>
<rect key="frame" x="65" y="10" width="170" height="173"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO">
<rect key="frame" x="0.0" y="0.0" width="170" height="173"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="B7x-OB-ICD">
<rect key="frame" x="72" y="75.666666666666671" width="26" height="22"/>
<rect key="frame" x="72" y="75.5" width="26" height="22"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="SiW-h1-pYT"/>
@ -294,20 +294,43 @@
</constraints>
</view>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="2AS-0D-YqT">
<rect key="frame" x="55" y="46.666666666666657" width="60" height="60"/>
<rect key="frame" x="45" y="36.5" width="80" height="80"/>
<color key="backgroundColor" name="ThemeMainBackground"/>
<constraints>
<constraint firstAttribute="width" secondItem="2AS-0D-YqT" secondAttribute="height" multiplier="1:1" id="5g2-sa-yq3"/>
<constraint firstAttribute="width" relation="lessThanOrEqual" constant="60" id="Ddx-6M-Xsk"/>
<constraint firstAttribute="width" priority="900" constant="60" id="F4U-Ej-SBB"/>
<constraint firstAttribute="width" relation="lessThanOrEqual" constant="80" id="Ddx-6M-Xsk"/>
<constraint firstAttribute="width" priority="900" constant="80" id="F4U-Ej-SBB"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Send Money" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="7" translatesAutoresizingMaskIntoConstraints="NO" id="1gB-BN-h1P">
<rect key="frame" x="16" y="111.66666666666667" width="138" height="15.333333333333329"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Medium" family="San Francisco Text" pointSize="13"/>
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="HFk-BX-gMN">
<rect key="frame" x="10" y="116.5" width="150" height="56.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ypi-Ft-V2u">
<rect key="frame" x="0.0" y="0.0" width="150" height="6.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="Send Money" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="7" translatesAutoresizingMaskIntoConstraints="NO" id="1gB-BN-h1P">
<rect key="frame" x="0.0" y="6.5" width="150" height="30"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="30" id="RMc-7w-A4h"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoText-Medium" family="San Francisco Text" pointSize="13"/>
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vff-tE-cNy">
<rect key="frame" x="0.0" y="36.5" width="150" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="ypi-Ft-V2u" firstAttribute="height" secondItem="vff-tE-cNy" secondAttribute="height" multiplier="1:3" id="aLq-bg-aq7"/>
</constraints>
</stackView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_dragNdrop" translatesAutoresizingMaskIntoConstraints="NO" id="Tto-II-gHc">
<rect key="frame" x="154" y="6" width="10" height="10"/>
<constraints>
@ -319,18 +342,18 @@
</view>
<color key="backgroundColor" name="ThemeMainBackground"/>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="1gB-BN-h1P" secondAttribute="trailing" constant="8" id="6Jo-mq-p5J"/>
<constraint firstItem="1gB-BN-h1P" firstAttribute="leading" secondItem="Etq-JH-rVI" secondAttribute="leadingMargin" constant="8" id="92I-qz-Jrf"/>
<constraint firstAttribute="bottom" secondItem="HFk-BX-gMN" secondAttribute="bottom" id="1ix-kS-Lwd"/>
<constraint firstItem="2AS-0D-YqT" firstAttribute="centerY" secondItem="B7x-OB-ICD" secondAttribute="centerY" constant="-10" id="EIz-R7-J9H"/>
<constraint firstAttribute="bottomMargin" relation="greaterThanOrEqual" secondItem="1gB-BN-h1P" secondAttribute="bottom" constant="5" id="Og8-kB-g6C"/>
<constraint firstItem="HFk-BX-gMN" firstAttribute="leading" secondItem="Etq-JH-rVI" secondAttribute="leading" constant="10" id="TjT-df-EhA"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="2AS-0D-YqT" secondAttribute="trailing" constant="10" id="WCa-6N-p51"/>
<constraint firstAttribute="trailing" secondItem="HFk-BX-gMN" secondAttribute="trailing" constant="10" id="a0V-ol-B5N"/>
<constraint firstItem="2AS-0D-YqT" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Etq-JH-rVI" secondAttribute="leading" constant="10" id="a3w-rn-Okr"/>
<constraint firstAttribute="trailing" secondItem="Tto-II-gHc" secondAttribute="trailing" constant="6" id="aDQ-XP-G1H"/>
<constraint firstItem="2AS-0D-YqT" firstAttribute="centerX" secondItem="Etq-JH-rVI" secondAttribute="centerX" id="dcN-Y7-VS9"/>
<constraint firstItem="B7x-OB-ICD" firstAttribute="centerX" secondItem="Etq-JH-rVI" secondAttribute="centerX" id="e35-zO-9X2"/>
<constraint firstItem="2AS-0D-YqT" firstAttribute="top" relation="greaterThanOrEqual" secondItem="Etq-JH-rVI" secondAttribute="topMargin" constant="10" id="j4o-Xh-Xdd"/>
<constraint firstItem="Tto-II-gHc" firstAttribute="top" secondItem="Etq-JH-rVI" secondAttribute="top" constant="6" id="tqF-Pu-NfF"/>
<constraint firstItem="1gB-BN-h1P" firstAttribute="top" secondItem="2AS-0D-YqT" secondAttribute="bottom" constant="5" id="xWB-BN-UF3"/>
<constraint firstItem="HFk-BX-gMN" firstAttribute="top" secondItem="2AS-0D-YqT" secondAttribute="bottom" id="vLl-YY-L4p"/>
<constraint firstItem="B7x-OB-ICD" firstAttribute="centerY" secondItem="Etq-JH-rVI" secondAttribute="centerY" id="znS-Pz-eoE"/>
</constraints>
<size key="customSize" width="170" height="173"/>
@ -418,7 +441,7 @@
<tabBarItem key="tabBarItem" title="Home" image="ic-home" id="If6-UM-LN6"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="NbY-y6-481">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
@ -432,7 +455,7 @@
</scene>
</scenes>
<resources>
<image name="ic-home" width="20.333333969116211" height="20.333333969116211"/>
<image name="ic-home" width="20.5" height="20.5"/>
<image name="ic_dragNdrop" width="10" height="10"/>
<image name="ic_home_verified" width="67" height="72"/>
<namedColor name="ThemeMainBackground">

3
GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift

@ -136,7 +136,10 @@ extension RechargePaymentViewController {
guard let `self` = self else {return}
let vc = BootPayViewController(dataSource: self, delegate: self)
self.present(vc, animated: true)
}.disposed(by: disposeBag)
rechargeButton.rx.tap.bind { [weak self] in
//TODO: Biometric & Secure Keypad
}.disposed(by: disposeBag)
availableBalance.asDriverOnErrorJustComplete()

Loading…
Cancel
Save