Browse Source

removed passport image and corrected labels

pull/1/head
gme_2 6 years ago
parent
commit
26fd038c94
  1. 3
      GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift
  2. 174
      GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3.storyboard
  3. 12
      GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3ViewController.swift
  4. 4
      GMERemittance/_Home/_Home.storyboard

3
GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift

@ -129,8 +129,7 @@ class KycInteractor {
KycForm3FieldKeys.selfieImage: model?.selfieImage, KycForm3FieldKeys.selfieImage: model?.selfieImage,
KycForm3FieldKeys.frontImage: model?.frontImage, KycForm3FieldKeys.frontImage: model?.frontImage,
KycForm3FieldKeys.backImage: model?.backImage, KycForm3FieldKeys.backImage: model?.backImage,
KycForm3FieldKeys.passbookImage: model?.passbookImage,
KycForm3FieldKeys.passportImage: model?.passportImage
KycForm3FieldKeys.passbookImage: model?.passbookImage
] ]
formDick.forEach({ formDick.forEach({

174
GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3.storyboard

@ -6,6 +6,7 @@
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<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>
<customFonts key="customFonts"> <customFonts key="customFonts">
@ -30,7 +31,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rUB-Um-w1X"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rUB-Um-w1X">
<rect key="frame" x="0.0" y="0.0" width="375" height="642"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Upload your documents for verification" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mVf-MD-cFF"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Upload your documents for verification" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mVf-MD-cFF">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/> <rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
@ -42,92 +43,30 @@
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Note: Verification Id can be your National ID or Alien Reg ID or Passport Front " textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tXr-oG-t5s">
<rect key="frame" x="24" y="58" width="327" height="29"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="12"/>
<color key="textColor" red="0.29019607843137252" green="0.29019607843137252" blue="0.29019607843137252" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VoJ-vJ-v30"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VoJ-vJ-v30">
<rect key="frame" x="24" y="70" width="327" height="495"/>
<rect key="frame" x="24" y="98" width="327" height="412"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="dk7-gc-v1u"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="dk7-gc-v1u">
<rect key="frame" x="0.0" y="0.0" width="327" height="489"/>
<rect key="frame" x="0.0" y="0.0" width="327" height="406"/>
<subviews> <subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cyp-fF-fpc" userLabel="ViewPassport">
<rect key="frame" x="0.0" y="0.0" width="327" height="90"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cyh-jz-NXw">
<rect key="frame" x="2" y="2" width="98" height="86"/>
<subviews>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jqq-3Z-oSh">
<rect key="frame" x="0.0" y="0.0" width="98" height="86"/>
<state key="normal" image="ic_camera"/>
<connections>
<action selector="passportCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="dbR-nb-rAN"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Jqq-3Z-oSh" firstAttribute="top" secondItem="cyh-jz-NXw" secondAttribute="top" id="3jm-2I-R3R"/>
<constraint firstAttribute="trailing" secondItem="Jqq-3Z-oSh" secondAttribute="trailing" id="8xy-45-sNS"/>
<constraint firstAttribute="width" constant="98" id="FR2-PS-9xB"/>
<constraint firstItem="Jqq-3Z-oSh" firstAttribute="leading" secondItem="cyh-jz-NXw" secondAttribute="leading" id="FZ8-rV-G4O"/>
<constraint firstAttribute="bottom" secondItem="Jqq-3Z-oSh" secondAttribute="bottom" id="VSc-xC-02T"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="acf-yV-8Lg">
<rect key="frame" x="102" y="2" width="223" height="86"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mhM-2n-g8F">
<rect key="frame" x="156" y="50" width="55" height="35"/>
<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="passport:" destination="HSb-ou-7T5" eventType="touchUpInside" id="XLl-Qb-aco"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Passport" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZqU-oG-Zqm">
<rect key="frame" x="8" y="25.5" width="207" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="DDm-Uf-Xht"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="ZqU-oG-Zqm" firstAttribute="leading" secondItem="acf-yV-8Lg" secondAttribute="leading" constant="8" id="4Nv-f5-6do"/>
<constraint firstAttribute="trailing" secondItem="mhM-2n-g8F" secondAttribute="trailing" constant="12" id="fkw-iH-OH8"/>
<constraint firstItem="ZqU-oG-Zqm" firstAttribute="centerY" secondItem="acf-yV-8Lg" secondAttribute="centerY" id="y7K-as-A72"/>
<constraint firstAttribute="bottom" secondItem="mhM-2n-g8F" secondAttribute="bottom" constant="1" id="z7y-OW-3Kq"/>
<constraint firstAttribute="trailing" secondItem="ZqU-oG-Zqm" secondAttribute="trailing" constant="8" id="zAb-Fs-LmH"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.90588235289999997" green="0.92941176469999998" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="cyh-jz-NXw" firstAttribute="leading" secondItem="cyp-fF-fpc" secondAttribute="leading" constant="2" id="5E6-4C-ksp"/>
<constraint firstItem="acf-yV-8Lg" firstAttribute="top" secondItem="cyp-fF-fpc" secondAttribute="top" constant="2" id="5Lp-iU-6XA"/>
<constraint firstItem="acf-yV-8Lg" firstAttribute="leading" secondItem="cyh-jz-NXw" secondAttribute="trailing" constant="2" id="BST-Jq-zST"/>
<constraint firstAttribute="bottom" secondItem="acf-yV-8Lg" secondAttribute="bottom" constant="2" id="UWB-qC-nCS"/>
<constraint firstAttribute="bottom" secondItem="cyh-jz-NXw" secondAttribute="bottom" constant="2" id="YNE-er-6W2"/>
<constraint firstItem="cyh-jz-NXw" firstAttribute="top" secondItem="cyp-fF-fpc" secondAttribute="top" constant="2" id="ccc-fq-ELk"/>
<constraint firstAttribute="trailing" secondItem="acf-yV-8Lg" secondAttribute="trailing" constant="2" id="kMI-Zc-TCb"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oMK-PG-o8t" userLabel="selfie"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oMK-PG-o8t" userLabel="selfie">
<rect key="frame" x="0.0" y="100" width="327" height="89.5"/>
<rect key="frame" x="0.0" y="0.0" width="327" height="94"/>
<subviews> <subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="31r-ka-1Yr"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="31r-ka-1Yr">
<rect key="frame" x="2" y="2" width="98" height="85.5"/>
<rect key="frame" x="2" y="2" width="98" height="90"/>
<subviews> <subviews>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HD5-L5-Jn7"> <button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HD5-L5-Jn7">
<rect key="frame" x="0.0" y="0.0" width="98" height="86"/>
<rect key="frame" x="0.0" y="0.0" width="98" height="90.5"/>
<constraints>
<constraint firstAttribute="width" secondItem="HD5-L5-Jn7" secondAttribute="height" multiplier="49:45" id="ENf-9S-uU7"/>
<constraint firstAttribute="height" constant="90.5" id="rZn-bS-nmm"/>
</constraints>
<state key="normal" image="ic_camera"/> <state key="normal" image="ic_camera"/>
<connections> <connections>
<action selector="selfieCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="05z-8p-EA5"/> <action selector="selfieCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="05z-8p-EA5"/>
@ -144,10 +83,10 @@
</constraints> </constraints>
</view> </view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2Fi-V8-iHa"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2Fi-V8-iHa">
<rect key="frame" x="102" y="2" width="223" height="85.5"/>
<rect key="frame" x="102" y="2" width="223" height="90"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Selfie with National ID/Alien Reg ID/Passport Front" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o0x-xD-J2G">
<rect key="frame" x="8" y="25" width="168" height="35"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Selfie with Verification Id Front" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o0x-xD-J2G">
<rect key="frame" x="8" y="27.5" width="168" height="35"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="35" id="bTM-Gd-HfV"/> <constraint firstAttribute="height" constant="35" id="bTM-Gd-HfV"/>
</constraints> </constraints>
@ -156,7 +95,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lFh-Zy-f4Y"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lFh-Zy-f4Y">
<rect key="frame" x="156" y="49.5" width="55" height="35"/>
<rect key="frame" x="156" y="54" width="55" height="35"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="35" id="loD-1d-eq2"/> <constraint firstAttribute="height" constant="35" id="loD-1d-eq2"/>
</constraints> </constraints>
@ -196,13 +135,17 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</view> </view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Q5-WL-G5r" userLabel="ViewPassbook"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Q5-WL-G5r" userLabel="ViewPassbook">
<rect key="frame" x="0.0" y="199.5" width="327" height="90"/>
<rect key="frame" x="0.0" y="104" width="327" height="94"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wpy-Ta-HFS"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wpy-Ta-HFS">
<rect key="frame" x="2" y="2" width="98" height="86"/>
<rect key="frame" x="2" y="2" width="98" height="90"/>
<subviews> <subviews>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bKZ-ZC-fJo">
<rect key="frame" x="0.0" y="0.0" width="98" height="86"/>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bKZ-ZC-fJo">
<rect key="frame" x="0.0" y="0.0" width="98" height="90"/>
<constraints>
<constraint firstAttribute="width" secondItem="bKZ-ZC-fJo" secondAttribute="height" multiplier="49:45" id="6Dx-ZL-uX0"/>
<constraint firstAttribute="height" constant="90" id="6Li-Qd-fXl"/>
</constraints>
<state key="normal" image="ic_camera"/> <state key="normal" image="ic_camera"/>
<connections> <connections>
<action selector="passbookCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="mo5-EL-TUN"/> <action selector="passbookCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="mo5-EL-TUN"/>
@ -219,10 +162,10 @@
</constraints> </constraints>
</view> </view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P2B-Vr-oN0"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P2B-Vr-oN0">
<rect key="frame" x="102" y="2" width="223" height="86"/>
<rect key="frame" x="102" y="2" width="223" height="90"/>
<subviews> <subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lBN-We-WE8"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lBN-We-WE8">
<rect key="frame" x="156" y="50" width="55" height="35"/>
<rect key="frame" x="156" y="54" width="55" height="35"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/> <fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<state key="normal" title="View Sample"> <state key="normal" title="View Sample">
<color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/> <color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
@ -232,7 +175,7 @@
</connections> </connections>
</button> </button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Passbook" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q7T-EI-vI2"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Passbook" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q7T-EI-vI2">
<rect key="frame" x="8" y="25.5" width="207" height="35"/>
<rect key="frame" x="8" y="27.5" width="207" height="35"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="35" id="nCb-3j-6qt"/> <constraint firstAttribute="height" constant="35" id="nCb-3j-6qt"/>
</constraints> </constraints>
@ -268,13 +211,17 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</view> </view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sSt-BJ-VAQ" userLabel="ViewFront"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sSt-BJ-VAQ" userLabel="ViewFront">
<rect key="frame" x="0.0" y="299.5" width="327" height="89.5"/>
<rect key="frame" x="0.0" y="208" width="327" height="94"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XhN-hI-d9K"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XhN-hI-d9K">
<rect key="frame" x="2" y="2" width="98" height="85.5"/>
<rect key="frame" x="2" y="2" width="98" height="90"/>
<subviews> <subviews>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Bqb-j0-JNj">
<rect key="frame" x="0.0" y="0.0" width="98" height="85.5"/>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Bqb-j0-JNj">
<rect key="frame" x="0.0" y="0.0" width="98" height="90"/>
<constraints>
<constraint firstAttribute="height" constant="90" id="Ywp-uo-IPH"/>
<constraint firstAttribute="width" secondItem="Bqb-j0-JNj" secondAttribute="height" multiplier="49:45" id="bjv-eF-e9f"/>
</constraints>
<state key="normal" image="ic_camera"/> <state key="normal" image="ic_camera"/>
<connections> <connections>
<action selector="frontCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Gms-Lu-0ko"/> <action selector="frontCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Gms-Lu-0ko"/>
@ -291,10 +238,10 @@
</constraints> </constraints>
</view> </view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="z9b-kH-3nG"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="z9b-kH-3nG">
<rect key="frame" x="102" y="2" width="223" height="85.5"/>
<rect key="frame" x="102" y="2" width="223" height="90"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="National/Alien Reg ID Front" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PAv-7J-bBT">
<rect key="frame" x="8" y="25.5" width="207" height="35"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Verification Id Front" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PAv-7J-bBT">
<rect key="frame" x="8" y="28" width="207" height="35"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="35" id="Yxi-0H-EXs"/> <constraint firstAttribute="height" constant="35" id="Yxi-0H-EXs"/>
</constraints> </constraints>
@ -303,7 +250,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3JW-bb-MGf"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3JW-bb-MGf">
<rect key="frame" x="156" y="49.5" width="55" height="35"/>
<rect key="frame" x="156" y="54" width="55" height="35"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/> <fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<state key="normal" title="View Sample"> <state key="normal" title="View Sample">
<color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/> <color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
@ -340,13 +287,17 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</view> </view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qgv-aT-tmu" userLabel="ViewBack"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qgv-aT-tmu" userLabel="ViewBack">
<rect key="frame" x="0.0" y="399" width="327" height="90"/>
<rect key="frame" x="0.0" y="312" width="327" height="94"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CfX-c7-LZV"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CfX-c7-LZV">
<rect key="frame" x="2" y="2" width="98" height="86"/>
<rect key="frame" x="2" y="2" width="98" height="90"/>
<subviews> <subviews>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="26f-aL-gz7">
<rect key="frame" x="0.0" y="-0.5" width="98" height="86.5"/>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="26f-aL-gz7">
<rect key="frame" x="0.0" y="-0.5" width="98" height="90.5"/>
<constraints>
<constraint firstAttribute="width" secondItem="26f-aL-gz7" secondAttribute="height" multiplier="49:45" id="2P0-na-GKm"/>
<constraint firstAttribute="height" constant="90.5" id="qn8-tv-U0Y"/>
</constraints>
<state key="normal" image="ic_camera"/> <state key="normal" image="ic_camera"/>
<connections> <connections>
<action selector="backCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Yu4-mo-au5"/> <action selector="backCamera:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Yu4-mo-au5"/>
@ -363,10 +314,10 @@
</constraints> </constraints>
</view> </view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="i68-fo-psG"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="i68-fo-psG">
<rect key="frame" x="102" y="2" width="223" height="86"/>
<rect key="frame" x="102" y="2" width="223" height="90"/>
<subviews> <subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tZR-gX-bEM"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tZR-gX-bEM">
<rect key="frame" x="156" y="50" width="55" height="35"/>
<rect key="frame" x="156" y="54" width="55" height="35"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/> <fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<state key="normal" title="View Sample"> <state key="normal" title="View Sample">
<color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/> <color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
@ -375,8 +326,8 @@
<action selector="back:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Jcu-m3-0Qf"/> <action selector="back:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Jcu-m3-0Qf"/>
</connections> </connections>
</button> </button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="National/Alien Reg ID Back" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="i47-Zo-hqH">
<rect key="frame" x="8" y="26.5" width="207" height="35"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Verification Id Back" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="i47-Zo-hqH">
<rect key="frame" x="8" y="27.5" width="207" height="35"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="35" id="3SA-yv-XyV"/> <constraint firstAttribute="height" constant="35" id="3SA-yv-XyV"/>
</constraints> </constraints>
@ -413,7 +364,6 @@
</view> </view>
</subviews> </subviews>
<constraints> <constraints>
<constraint firstItem="mhM-2n-g8F" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="3ho-S8-caB"/>
<constraint firstItem="tZR-gX-bEM" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="Kij-vJ-i0g"/> <constraint firstItem="tZR-gX-bEM" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="Kij-vJ-i0g"/>
<constraint firstItem="3JW-bb-MGf" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="ZIt-mB-LyY"/> <constraint firstItem="3JW-bb-MGf" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="ZIt-mB-LyY"/>
<constraint firstItem="lBN-We-WE8" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="gEu-Uk-Wdz"/> <constraint firstItem="lBN-We-WE8" firstAttribute="height" secondItem="lFh-Zy-f4Y" secondAttribute="height" id="gEu-Uk-Wdz"/>
@ -426,11 +376,10 @@
<constraint firstItem="dk7-gc-v1u" firstAttribute="top" secondItem="VoJ-vJ-v30" secondAttribute="top" id="C9v-U5-mvp"/> <constraint firstItem="dk7-gc-v1u" firstAttribute="top" secondItem="VoJ-vJ-v30" secondAttribute="top" id="C9v-U5-mvp"/>
<constraint firstAttribute="trailing" secondItem="dk7-gc-v1u" secondAttribute="trailing" id="JMO-PZ-UM0"/> <constraint firstAttribute="trailing" secondItem="dk7-gc-v1u" secondAttribute="trailing" id="JMO-PZ-UM0"/>
<constraint firstItem="dk7-gc-v1u" firstAttribute="leading" secondItem="VoJ-vJ-v30" secondAttribute="leading" id="Ngg-x3-jWn"/> <constraint firstItem="dk7-gc-v1u" firstAttribute="leading" secondItem="VoJ-vJ-v30" secondAttribute="leading" id="Ngg-x3-jWn"/>
<constraint firstAttribute="height" constant="495" id="wO0-YU-esE"/>
</constraints> </constraints>
</view> </view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="w8k-2p-JDg"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="w8k-2p-JDg">
<rect key="frame" x="88" y="573" width="200" height="50"/>
<rect key="frame" x="88" y="518" width="200" height="50"/>
<color key="backgroundColor" red="0.91372549020000005" green="0.2470588235" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="backgroundColor" red="0.91372549020000005" green="0.2470588235" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="50" id="H19-mH-yjS"/> <constraint firstAttribute="height" constant="50" id="H19-mH-yjS"/>
@ -452,15 +401,17 @@
</subviews> </subviews>
<color key="backgroundColor" red="0.90588235289999997" green="0.92941176469999998" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/> <color key="backgroundColor" red="0.90588235289999997" green="0.92941176469999998" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints> <constraints>
<constraint firstItem="VoJ-vJ-v30" firstAttribute="top" secondItem="tXr-oG-t5s" secondAttribute="bottom" constant="11" id="0Mz-nZ-8nH"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="trailing" secondItem="VoJ-vJ-v30" secondAttribute="trailing" id="1Zk-In-WlX"/>
<constraint firstItem="mVf-MD-cFF" firstAttribute="leading" secondItem="rUB-Um-w1X" secondAttribute="leading" id="30G-SY-zgD"/> <constraint firstItem="mVf-MD-cFF" firstAttribute="leading" secondItem="rUB-Um-w1X" secondAttribute="leading" id="30G-SY-zgD"/>
<constraint firstAttribute="height" constant="642" id="4UN-Pl-l2v"/>
<constraint firstAttribute="trailing" secondItem="VoJ-vJ-v30" secondAttribute="trailing" constant="24" id="8Fb-xQ-vRq"/> <constraint firstAttribute="trailing" secondItem="VoJ-vJ-v30" secondAttribute="trailing" constant="24" id="8Fb-xQ-vRq"/>
<constraint firstItem="VoJ-vJ-v30" firstAttribute="top" secondItem="mVf-MD-cFF" secondAttribute="bottom" constant="20" id="Gqm-gm-xaM"/>
<constraint firstItem="mVf-MD-cFF" firstAttribute="top" secondItem="rUB-Um-w1X" secondAttribute="top" id="PPi-3p-7Wv"/> <constraint firstItem="mVf-MD-cFF" firstAttribute="top" secondItem="rUB-Um-w1X" secondAttribute="top" id="PPi-3p-7Wv"/>
<constraint firstItem="w8k-2p-JDg" firstAttribute="centerX" secondItem="rUB-Um-w1X" secondAttribute="centerX" id="VZv-i1-dRJ"/> <constraint firstItem="w8k-2p-JDg" firstAttribute="centerX" secondItem="rUB-Um-w1X" secondAttribute="centerX" id="VZv-i1-dRJ"/>
<constraint firstItem="w8k-2p-JDg" firstAttribute="top" secondItem="VoJ-vJ-v30" secondAttribute="bottom" constant="8" id="WMA-05-lHV"/> <constraint firstItem="w8k-2p-JDg" firstAttribute="top" secondItem="VoJ-vJ-v30" secondAttribute="bottom" constant="8" id="WMA-05-lHV"/>
<constraint firstAttribute="trailing" secondItem="mVf-MD-cFF" secondAttribute="trailing" id="fOW-mV-Cdl"/> <constraint firstAttribute="trailing" secondItem="mVf-MD-cFF" secondAttribute="trailing" id="fOW-mV-Cdl"/>
<constraint firstItem="VoJ-vJ-v30" firstAttribute="leading" secondItem="rUB-Um-w1X" secondAttribute="leading" constant="24" id="fY8-5r-ydu"/> <constraint firstItem="VoJ-vJ-v30" firstAttribute="leading" secondItem="rUB-Um-w1X" secondAttribute="leading" constant="24" id="fY8-5r-ydu"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="leading" secondItem="VoJ-vJ-v30" secondAttribute="leading" id="iiQ-Md-eSB"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="top" secondItem="mVf-MD-cFF" secondAttribute="bottom" constant="8" id="qiH-tU-an9"/>
</constraints> </constraints>
</view> </view>
</subviews> </subviews>
@ -469,6 +420,7 @@
<constraint firstItem="rUB-Um-w1X" firstAttribute="leading" secondItem="RD4-G7-6v9" secondAttribute="leading" id="4hB-vb-ftk"/> <constraint firstItem="rUB-Um-w1X" firstAttribute="leading" secondItem="RD4-G7-6v9" secondAttribute="leading" id="4hB-vb-ftk"/>
<constraint firstAttribute="bottom" secondItem="rUB-Um-w1X" secondAttribute="bottom" id="ko4-Zi-fcF"/> <constraint firstAttribute="bottom" secondItem="rUB-Um-w1X" secondAttribute="bottom" id="ko4-Zi-fcF"/>
<constraint firstItem="rUB-Um-w1X" firstAttribute="width" secondItem="RD4-G7-6v9" secondAttribute="width" id="oay-Uh-8Ir"/> <constraint firstItem="rUB-Um-w1X" firstAttribute="width" secondItem="RD4-G7-6v9" secondAttribute="width" id="oay-Uh-8Ir"/>
<constraint firstItem="rUB-Um-w1X" firstAttribute="height" secondItem="RD4-G7-6v9" secondAttribute="height" id="pag-ZY-z7H"/>
<constraint firstAttribute="trailing" secondItem="rUB-Um-w1X" secondAttribute="trailing" id="pie-Yb-fdq"/> <constraint firstAttribute="trailing" secondItem="rUB-Um-w1X" secondAttribute="trailing" id="pie-Yb-fdq"/>
<constraint firstItem="rUB-Um-w1X" firstAttribute="top" secondItem="RD4-G7-6v9" secondAttribute="top" id="wa7-4g-r1v"/> <constraint firstItem="rUB-Um-w1X" firstAttribute="top" secondItem="RD4-G7-6v9" secondAttribute="top" id="wa7-4g-r1v"/>
</constraints> </constraints>
@ -490,8 +442,6 @@
<outlet property="frontImageView" destination="sSt-BJ-VAQ" id="kzP-Bu-dVH"/> <outlet property="frontImageView" destination="sSt-BJ-VAQ" id="kzP-Bu-dVH"/>
<outlet property="passBookView" destination="1Q5-WL-G5r" id="ic7-Nw-NcY"/> <outlet property="passBookView" destination="1Q5-WL-G5r" id="ic7-Nw-NcY"/>
<outlet property="passbook" destination="bKZ-ZC-fJo" id="gk4-sg-uzL"/> <outlet property="passbook" destination="bKZ-ZC-fJo" id="gk4-sg-uzL"/>
<outlet property="passport" destination="Jqq-3Z-oSh" id="7L9-8Z-qJK"/>
<outlet property="passportView" destination="cyp-fF-fpc" id="bu0-kv-Dlf"/>
<outlet property="selfieButton" destination="HD5-L5-Jn7" id="ihX-q1-URd"/> <outlet property="selfieButton" destination="HD5-L5-Jn7" id="ihX-q1-URd"/>
<outlet property="selfieView" destination="oMK-PG-o8t" id="TXL-Cd-KnV"/> <outlet property="selfieView" destination="oMK-PG-o8t" id="TXL-Cd-KnV"/>
</connections> </connections>

12
GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3ViewController.swift

@ -19,11 +19,10 @@ enum PictureType: Int {
} }
struct KycForm3FieldKeys { struct KycForm3FieldKeys {
static let selfieImage = "bank"
static let frontImage = "accountNumber"
static let backImage = "verificationId"
static let passbookImage = "verificationIdNumber"
static let passportImage = "expiryDate"
static let selfieImage = "selfie"
static let passbookImage = "passbook"
static let frontImage = "frontImage"
static let backImage = "backImage"
} }
class KycForm3Model { class KycForm3Model {
@ -169,8 +168,7 @@ class KycForm3ViewController: UIViewController {
KycForm3FieldKeys.selfieImage: self.selfieView, KycForm3FieldKeys.selfieImage: self.selfieView,
KycForm3FieldKeys.frontImage: self.frontImageView, KycForm3FieldKeys.frontImage: self.frontImageView,
KycForm3FieldKeys.backImage: self.backImageView, KycForm3FieldKeys.backImage: self.backImageView,
KycForm3FieldKeys.passbookImage: self.passBookView,
KycForm3FieldKeys.passportImage: self.passportView,
KycForm3FieldKeys.passbookImage: self.passBookView
] ]
} }

4
GMERemittance/_Home/_Home.storyboard

@ -1155,10 +1155,10 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8WZ-lQ-Im6" userLabel="LoadMoreView"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8WZ-lQ-Im6" userLabel="LoadMoreView">
<rect key="frame" x="0.0" y="0.0" width="375" height="44.5"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<subviews> <subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7wo-T4-XhL"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7wo-T4-XhL">
<rect key="frame" x="155.5" y="8.5" width="63" height="29"/>
<rect key="frame" x="155.5" y="7.5" width="63" height="29"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/> <fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<state key="normal" title="Load More"/> <state key="normal" title="Load More"/>
<connections> <connections>

Loading…
Cancel
Save