Browse Source

view managed

pull/1/head
gme_2 6 years ago
parent
commit
809c2e6bf1
  1. 11
      GMERemittance/Module/SendMoney/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift
  2. 217
      GMERemittance/Module/SendMoneyCode/User Interface/View/SendMoneyCode.storyboard
  3. 7
      GMERemittance/Module/SendMoneyCode/User Interface/View/SendMoneyCodeViewController.swift
  4. 8
      GMERemittance/Module/SendMoneyCode/User Interface/Wireframe/SendMoneyCodeWireframe.swift

11
GMERemittance/Module/SendMoney/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift

@ -204,10 +204,17 @@ class SendMoneyVerificationViewController: UITableViewController {
func askPassword() {
if let _ = self.requestModel?.autoDebitAccount?.kftcLogId {
showNumberTranskeyAction()
// showNumberTranskeyAction()
SendMoneyCodeWireframe().open(completion: self.otpEntered, source: self)
// self.present(SendMoneyCodeWireframe().getMainView(), animated: true, completion: nil)
return
}
showQwertyTranskeyAction()
SendMoneyCodeWireframe().open(completion: self.otpEntered, source: self)
// showQwertyTranskeyAction()
}
func otpEntered(otp: String) {
self.encryptedNumber = otp
}
// start keyboard

217
GMERemittance/Module/SendMoneyCode/User Interface/View/SendMoneyCode.storyboard

@ -27,140 +27,139 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="toU-KE-Ttn">
<rect key="frame" x="20" y="20" width="335" height="627"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5f8-yP-m8a">
<rect key="frame" x="0.0" y="0.0" width="335" height="467"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TwN-Xt-aVu" userLabel="contentview">
<rect key="frame" x="0.0" y="0.0" width="375" height="646"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="We have send verification code to your mobile. Please enter the code as you recieve in your message." textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5IN-lS-9x1">
<rect key="frame" x="10" y="40" width="315" height="0.0"/>
<constraints>
<constraint firstAttribute="height" id="pCw-WB-iEQ"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="17"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="11" translatesAutoresizingMaskIntoConstraints="NO" id="1me-ST-u3m">
<rect key="frame" x="8" y="75" width="315" height="75.5"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="glg-iv-MSv">
<rect key="frame" x="10" y="20" width="355" height="606"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enter 4 Digit OTP Code" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DrM-1Q-HDu">
<rect key="frame" x="0.0" y="0.0" width="315" height="20.5"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ibk-1l-bfT">
<rect key="frame" x="77.5" y="310" width="200" height="50"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="rKm-eW-nXc"/>
<constraint firstAttribute="width" constant="200" id="tdo-Ke-KBO"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="18"/>
<state key="normal" title="Submit">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="25"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Enm-wU-bXW">
<rect key="frame" x="77.5" y="395" width="200" height="33"/>
<constraints>
<constraint firstAttribute="width" constant="200" id="16u-4C-OWp"/>
<constraint firstAttribute="height" constant="33" id="1z2-hd-CDm"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="17"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="iQj-E0-Ydc">
<rect key="frame" x="0.0" y="31.5" width="315" height="44"/>
<state key="normal" title="Not Now">
<color key="titleColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="dismiss:" destination="qLl-8V-Zim" eventType="touchUpInside" id="PIF-V1-0c2"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mpj-Sq-1Kl">
<rect key="frame" x="77.5" y="196" width="200" height="34"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="200" id="cV7-dn-svV"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="18"/>
<state key="normal" title="Resend Code">
<color key="titleColor" red="0.94117647059999998" green="0.21960784310000001" blue="0.2156862745" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="25"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="resend:" destination="qLl-8V-Zim" eventType="touchUpInside" id="pVa-gq-pQV"/>
</connections>
</button>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="grq-kj-9ru">
<rect key="frame" x="10" y="80" width="335" height="44"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="GME-1234" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="6Bi-d6-VbF">
<rect key="frame" x="0.0" y="0.0" width="250" height="44"/>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Enter 4 Digit OTP Code" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="oez-3d-bvG">
<rect key="frame" x="0.0" y="0.0" width="335" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="Al7-ds-xs6"/>
<constraint firstAttribute="height" constant="44" id="wig-XX-Cwa"/>
</constraints>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="17"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mVk-QZ-RiU">
<rect key="frame" x="260" y="0.0" width="55" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="55" id="rvo-mh-Gqd"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<state key="normal" title="View Sample">
<color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="viewSample:" destination="qLl-8V-Zim" eventType="touchUpInside" id="ZjB-IT-rbl"/>
</connections>
</button>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0bm-As-vBe">
<rect key="frame" x="150" y="149" width="55" height="24"/>
<constraints>
<constraint firstAttribute="width" constant="55" id="DYe-A8-04W"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<state key="normal" title="View Sample">
<color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="viewSample:" destination="qLl-8V-Zim" eventType="touchUpInside" id="gtx-so-HUO"/>
</connections>
</button>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="e9q-5y-IV2">
<rect key="frame" x="67.5" y="350.5" width="200" height="50"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="200" id="bA9-d3-eXB"/>
<constraint firstAttribute="height" constant="50" id="vbq-27-vku"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="18"/>
<state key="normal" title="Submit">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="25"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Cuk-Hk-e44">
<rect key="frame" x="67.5" y="414" width="200" height="33"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="17"/>
<state key="normal" title="Not Now">
<color key="titleColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="dismiss:" destination="qLl-8V-Zim" eventType="touchUpInside" id="Z6c-wY-JrJ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SQe-Gv-s24">
<rect key="frame" x="67.5" y="185" width="200" height="50"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="200" id="VcR-ac-6Hg"/>
<constraint firstAttribute="height" constant="50" id="YRg-Ht-tWF"/>
<constraint firstItem="mpj-Sq-1Kl" firstAttribute="centerX" secondItem="glg-iv-MSv" secondAttribute="centerX" id="77X-5f-TVm"/>
<constraint firstAttribute="trailing" secondItem="grq-kj-9ru" secondAttribute="trailing" constant="10" id="Ae6-3w-sai"/>
<constraint firstAttribute="height" constant="606" id="F9L-Ex-PIY"/>
<constraint firstItem="ibk-1l-bfT" firstAttribute="top" secondItem="mpj-Sq-1Kl" secondAttribute="bottom" constant="80" id="FtB-Qk-57G"/>
<constraint firstItem="grq-kj-9ru" firstAttribute="top" secondItem="glg-iv-MSv" secondAttribute="top" constant="80" id="R2Q-zv-Gqw"/>
<constraint firstItem="0bm-As-vBe" firstAttribute="top" secondItem="grq-kj-9ru" secondAttribute="bottom" constant="25" id="Rcg-CV-e4l"/>
<constraint firstItem="Enm-wU-bXW" firstAttribute="centerX" secondItem="glg-iv-MSv" secondAttribute="centerX" id="TLd-39-ow1"/>
<constraint firstItem="0bm-As-vBe" firstAttribute="centerX" secondItem="glg-iv-MSv" secondAttribute="centerX" id="fph-AF-fyU"/>
<constraint firstItem="ibk-1l-bfT" firstAttribute="centerX" secondItem="glg-iv-MSv" secondAttribute="centerX" id="lkV-Cq-pHg"/>
<constraint firstItem="grq-kj-9ru" firstAttribute="leading" secondItem="glg-iv-MSv" secondAttribute="leading" constant="10" id="nRn-Mc-kl1"/>
<constraint firstItem="mpj-Sq-1Kl" firstAttribute="top" secondItem="0bm-As-vBe" secondAttribute="bottom" constant="23" id="ocC-td-Gyb"/>
<constraint firstItem="Enm-wU-bXW" firstAttribute="top" secondItem="ibk-1l-bfT" secondAttribute="bottom" constant="35" id="z9D-jD-WWU"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="18"/>
<state key="normal" title="Resend Code">
<color key="titleColor" red="0.94117647059999998" green="0.21960784310000001" blue="0.2156862745" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="25"/>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="resend:" destination="qLl-8V-Zim" eventType="touchUpInside" id="T0i-z5-D8o"/>
</connections>
</button>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="1me-ST-u3m" secondAttribute="trailing" constant="12" id="0jI-By-p56"/>
<constraint firstItem="SQe-Gv-s24" firstAttribute="top" secondItem="6Bi-d6-VbF" secondAttribute="bottom" constant="34.666666666666657" id="Cge-Mw-fLU"/>
<constraint firstItem="Cuk-Hk-e44" firstAttribute="width" secondItem="e9q-5y-IV2" secondAttribute="width" id="FL6-ej-nz7"/>
<constraint firstItem="1me-ST-u3m" firstAttribute="leading" secondItem="5f8-yP-m8a" secondAttribute="leading" constant="8" id="Q7v-JW-u1l"/>
<constraint firstItem="1me-ST-u3m" firstAttribute="top" secondItem="5IN-lS-9x1" secondAttribute="bottom" constant="35" id="Vmj-Bu-xfV"/>
<constraint firstItem="e9q-5y-IV2" firstAttribute="centerX" secondItem="5f8-yP-m8a" secondAttribute="centerX" id="Yyp-10-wIt"/>
<constraint firstItem="Cuk-Hk-e44" firstAttribute="centerX" secondItem="5f8-yP-m8a" secondAttribute="centerX" id="bOs-ti-LBz"/>
<constraint firstItem="5IN-lS-9x1" firstAttribute="top" secondItem="5f8-yP-m8a" secondAttribute="top" constant="40" id="dgS-5o-TCD"/>
<constraint firstAttribute="trailing" secondItem="5IN-lS-9x1" secondAttribute="trailing" constant="10" id="iEh-Ox-sZJ"/>
<constraint firstItem="e9q-5y-IV2" firstAttribute="top" secondItem="1me-ST-u3m" secondAttribute="bottom" priority="250" constant="200" id="lAv-hf-T6f"/>
<constraint firstItem="5IN-lS-9x1" firstAttribute="leading" secondItem="5f8-yP-m8a" secondAttribute="leading" constant="10" id="lhs-Ey-GMF"/>
<constraint firstItem="Cuk-Hk-e44" firstAttribute="top" secondItem="e9q-5y-IV2" secondAttribute="bottom" constant="13.67" id="pZj-bu-VyY"/>
<constraint firstItem="SQe-Gv-s24" firstAttribute="centerX" secondItem="e9q-5y-IV2" secondAttribute="centerX" id="rBt-EH-3Rz"/>
<constraint firstAttribute="bottom" secondItem="Cuk-Hk-e44" secondAttribute="bottom" constant="20" id="wai-ff-0Wh"/>
<constraint firstAttribute="bottom" secondItem="glg-iv-MSv" secondAttribute="bottom" constant="20" id="Ety-Or-S9u"/>
<constraint firstItem="glg-iv-MSv" firstAttribute="leading" secondItem="TwN-Xt-aVu" secondAttribute="leading" constant="10" id="ZEV-Va-Fd5"/>
<constraint firstItem="glg-iv-MSv" firstAttribute="top" secondItem="TwN-Xt-aVu" secondAttribute="top" constant="20" id="rj6-Ld-RFF"/>
<constraint firstAttribute="trailing" secondItem="glg-iv-MSv" secondAttribute="trailing" constant="10" id="x0j-e8-w5Z"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="5f8-yP-m8a" firstAttribute="width" secondItem="toU-KE-Ttn" secondAttribute="width" id="AC9-4A-8vI"/>
<constraint firstItem="5f8-yP-m8a" firstAttribute="top" secondItem="toU-KE-Ttn" secondAttribute="top" id="PS5-fr-jhw"/>
<constraint firstAttribute="bottom" secondItem="5f8-yP-m8a" secondAttribute="bottom" id="ZwZ-7Y-vlo"/>
<constraint firstItem="5f8-yP-m8a" firstAttribute="leading" secondItem="toU-KE-Ttn" secondAttribute="leading" id="iqC-Ke-mPd"/>
<constraint firstAttribute="trailing" secondItem="5f8-yP-m8a" secondAttribute="trailing" id="w3Y-9p-EZe"/>
<constraint firstItem="TwN-Xt-aVu" firstAttribute="width" secondItem="toU-KE-Ttn" secondAttribute="width" id="1aJ-M1-wUg"/>
<constraint firstItem="TwN-Xt-aVu" firstAttribute="leading" secondItem="toU-KE-Ttn" secondAttribute="leading" id="1n9-pd-eFn"/>
<constraint firstAttribute="trailing" secondItem="TwN-Xt-aVu" secondAttribute="trailing" id="Ebh-W3-Ltj"/>
<constraint firstAttribute="bottom" secondItem="TwN-Xt-aVu" secondAttribute="bottom" id="lhd-kO-Kcc"/>
<constraint firstItem="TwN-Xt-aVu" firstAttribute="height" secondItem="toU-KE-Ttn" secondAttribute="height" priority="250" id="q88-74-e7E"/>
<constraint firstItem="TwN-Xt-aVu" firstAttribute="top" secondItem="toU-KE-Ttn" secondAttribute="top" id="zYk-4u-Vdz"/>
</constraints>
</scrollView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="toU-KE-Ttn" firstAttribute="leading" secondItem="6HB-NO-P3C" secondAttribute="leading" constant="20" id="Thy-Ny-BN1"/>
<constraint firstAttribute="bottom" secondItem="toU-KE-Ttn" secondAttribute="bottom" constant="20" id="W9V-Pa-5dQ"/>
<constraint firstAttribute="trailing" secondItem="toU-KE-Ttn" secondAttribute="trailing" constant="20" id="hxJ-lN-Sbl"/>
<constraint firstItem="toU-KE-Ttn" firstAttribute="top" secondItem="6HB-NO-P3C" secondAttribute="top" constant="20" id="jIH-X4-u6w"/>
<constraint firstAttribute="bottom" secondItem="toU-KE-Ttn" secondAttribute="bottom" id="QM4-ux-7oJ"/>
<constraint firstAttribute="trailing" secondItem="toU-KE-Ttn" secondAttribute="trailing" id="cTu-XN-kRz"/>
<constraint firstItem="toU-KE-Ttn" firstAttribute="leading" secondItem="6HB-NO-P3C" secondAttribute="leading" id="gmp-rd-QOL"/>
<constraint firstItem="toU-KE-Ttn" firstAttribute="top" secondItem="6HB-NO-P3C" secondAttribute="top" id="siE-pi-aXV"/>
</constraints>
</view>
</subviews>
@ -174,18 +173,16 @@
<viewLayoutGuide key="safeArea" id="0lZ-ZE-nYs"/>
</view>
<connections>
<outlet property="notNowButton" destination="Cuk-Hk-e44" id="SNh-7N-7F3"/>
<outlet property="otpCodeTitlelabel" destination="DrM-1Q-HDu" id="cHh-wE-1Jh"/>
<outlet property="resendButton" destination="SQe-Gv-s24" id="Wni-QO-URg"/>
<outlet property="submitButton" destination="e9q-5y-IV2" id="WYt-D6-Y3J"/>
<outlet property="titleLabel" destination="5IN-lS-9x1" id="5px-0P-OnE"/>
<outlet property="verificationCodeTextField" destination="6Bi-d6-VbF" id="zKh-Md-T5z"/>
<outlet property="viewSampleButton" destination="mVk-QZ-RiU" id="Pf7-QP-dGL"/>
<outlet property="backGourndBorderView" destination="glg-iv-MSv" id="97Q-nt-38d"/>
<outlet property="notNowButton" destination="Enm-wU-bXW" id="hYJ-qF-KHh"/>
<outlet property="resendButton" destination="mpj-Sq-1Kl" id="KXL-tz-y3J"/>
<outlet property="submitButton" destination="ibk-1l-bfT" id="3lA-I7-Qej"/>
<outlet property="verificationCodeTextField" destination="oez-3d-bvG" id="yXa-6u-fi0"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Avq-4M-AJn" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="268" y="239"/>
<point key="canvasLocation" x="268" y="238.83058470764618"/>
</scene>
</scenes>
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>

7
GMERemittance/Module/SendMoneyCode/User Interface/View/SendMoneyCodeViewController.swift

@ -8,6 +8,7 @@
import UIKit
import PMAlertController
import Hex
class SendMoneyCodeViewController: UIViewController {
@ -19,6 +20,9 @@ class SendMoneyCodeViewController: UIViewController {
@IBOutlet weak var resendButton: UIButton!
@IBOutlet weak var submitButton: UIButton!
@IBOutlet weak var notNowButton: UIButton!
@IBOutlet weak var backGourndBorderView: UIView!
// MARK: Properties
@ -107,6 +111,9 @@ class SendMoneyCodeViewController: UIViewController {
// all setup should be done here
self.requestOtpCode()
verificationCodeTextField.delegate = self
self.backGourndBorderView.layer.borderWidth = 0.5
self.backGourndBorderView.layer.borderColor = UIColor.init(hex: "#EBECED").cgColor
self.backGourndBorderView.layer.cornerRadius = 10
}
private func configureText() {

8
GMERemittance/Module/SendMoneyCode/User Interface/Wireframe/SendMoneyCodeWireframe.swift

@ -10,6 +10,7 @@ import UIKit
class SendMoneyCodeWireframe {
weak var view: UIViewController!
var completion: ((String) -> ())?
}
extension SendMoneyCodeWireframe: SendMoneyCodeWireframeInput {
@ -21,7 +22,7 @@ extension SendMoneyCodeWireframe: SendMoneyCodeWireframeInput {
let interactor = SendMoneyCodeInteractor(service: service)
let presenter = SendMoneyCodePresenter()
let viewController = viewControllerFromStoryboard(of: SendMoneyCodeViewController.self)
viewController.completion = self.completion
viewController.presenter = presenter
interactor.output = presenter
presenter.interactor = interactor
@ -31,4 +32,9 @@ extension SendMoneyCodeWireframe: SendMoneyCodeWireframeInput {
self.view = viewController
return viewController
}
func open(completion: @escaping (String) -> (), source: UIViewController) {
self.completion = completion
self.openMainView(source: source)
}
}
Loading…
Cancel
Save