Browse Source

password policy password policy added

pull/1/head
gme_2 6 years ago
parent
commit
25c509bd8e
  1. 109
      GMERemittance/Module/Register/User Interface/View/Register.storyboard
  2. 12
      GMERemittance/Module/Register/User Interface/View/RegisterViewController.swift

109
GMERemittance/Module/Register/User Interface/View/Register.storyboard

@ -37,10 +37,14 @@
<rect key="frame" x="0.0" y="20" width="375" height="647"/> <rect key="frame" x="0.0" y="20" width="375" height="647"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TMW-5D-0hw"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TMW-5D-0hw">
<rect key="frame" x="0.0" y="0.0" width="375" height="727"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="740.5"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Atf-ra-7AT">
<rect key="frame" x="33.5" y="144" width="308" height="325.5"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="40" translatesAutoresizingMaskIntoConstraints="NO" id="vrJ-M3-5iK"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="40" translatesAutoresizingMaskIntoConstraints="NO" id="vrJ-M3-5iK">
<rect key="frame" x="33.5" y="10" width="308" height="446"/>
<rect key="frame" x="33.5" y="10" width="308" height="459.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="gU9-fS-TB7"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="gU9-fS-TB7">
<rect key="frame" x="0.0" y="0.0" width="308" height="94"/> <rect key="frame" x="0.0" y="0.0" width="308" height="94"/>
@ -71,17 +75,14 @@
</label> </label>
</subviews> </subviews>
</stackView> </stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="DJI-ZZ-kWX">
<rect key="frame" x="0.0" y="134" width="308" height="312"/>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillProportionally" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="DJI-ZZ-kWX">
<rect key="frame" x="0.0" y="134" width="308" height="325.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="NaH-Uc-Yjv">
<rect key="frame" x="0.0" y="0.0" width="308" height="312"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fBU-1H-LYY">
<rect key="frame" x="0.0" y="0.0" width="308" height="78"/>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="S1D-Nc-CQS">
<rect key="frame" x="0.0" y="0.0" width="308" height="65"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="User ID" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RF1-Bx-jNz"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="User ID" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RF1-Bx-jNz">
<rect key="frame" x="0.0" y="7" width="308" height="15"/>
<rect key="frame" x="0.0" y="0.0" width="308" height="15"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="15" id="U4l-X1-cc5"/> <constraint firstAttribute="height" constant="15" id="U4l-X1-cc5"/>
</constraints> </constraints>
@ -90,7 +91,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Email" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Uss-1a-WgB"> <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Email" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Uss-1a-WgB">
<rect key="frame" x="0.0" y="29" width="308" height="43"/>
<rect key="frame" x="0.0" y="22" width="308" height="43"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="43" id="CjB-7P-lLX"/> <constraint firstAttribute="height" constant="43" id="CjB-7P-lLX"/>
</constraints> </constraints>
@ -104,32 +105,18 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</textField> </textField>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="RF1-Bx-jNz" firstAttribute="leading" secondItem="fBU-1H-LYY" secondAttribute="leading" id="COa-Ps-09M"/>
<constraint firstAttribute="height" constant="78" id="PRI-mH-ceW"/>
<constraint firstAttribute="trailing" secondItem="RF1-Bx-jNz" secondAttribute="trailing" id="dBQ-Ar-VVk"/>
<constraint firstItem="RF1-Bx-jNz" firstAttribute="top" secondItem="fBU-1H-LYY" secondAttribute="top" constant="7" id="dCu-Nj-X6Q"/>
<constraint firstItem="Uss-1a-WgB" firstAttribute="top" secondItem="RF1-Bx-jNz" secondAttribute="bottom" constant="7" id="mZT-Va-GCr"/>
<constraint firstAttribute="trailing" secondItem="Uss-1a-WgB" secondAttribute="trailing" id="qfb-Z2-mYD"/>
<constraint firstItem="Uss-1a-WgB" firstAttribute="leading" secondItem="fBU-1H-LYY" secondAttribute="leading" id="qjm-y8-bGQ"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="omE-4z-Nti">
<rect key="frame" x="0.0" y="78" width="308" height="78"/>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="XQ2-DQ-GPK">
<rect key="frame" x="0.0" y="75" width="308" height="100.5"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Password" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XxD-eR-5bJ">
<rect key="frame" x="0.0" y="10" width="308" height="15"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="DG5-ig-z9o"/>
<constraint firstAttribute="height" constant="15" id="DdP-uQ-CKB"/>
</constraints>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="PasswordPasswordPasswordPasswordPasswordPasswordPasswordPasswordPasswordPasswordPassword" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XxD-eR-5bJ">
<rect key="frame" x="0.0" y="0.0" width="308" height="50.5"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/> <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"/> <color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Create Password" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="64u-wX-SQo"> <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Create Password" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="64u-wX-SQo">
<rect key="frame" x="0.0" y="32" width="308" height="43"/>
<rect key="frame" x="0.0" y="57.5" width="308" height="43"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="43" id="v8S-IB-gIP"/> <constraint firstAttribute="height" constant="43" id="v8S-IB-gIP"/>
</constraints> </constraints>
@ -141,22 +128,12 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</textField> </textField>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="XxD-eR-5bJ" firstAttribute="top" secondItem="omE-4z-Nti" secondAttribute="top" constant="10" id="0sa-2M-4nh"/>
<constraint firstItem="64u-wX-SQo" firstAttribute="leading" secondItem="omE-4z-Nti" secondAttribute="leading" id="42A-Mm-sJB"/>
<constraint firstAttribute="height" constant="78" id="BfA-ai-wOG"/>
<constraint firstItem="64u-wX-SQo" firstAttribute="top" secondItem="XxD-eR-5bJ" secondAttribute="bottom" constant="7" id="HoL-2N-XWm"/>
<constraint firstItem="XxD-eR-5bJ" firstAttribute="leading" secondItem="omE-4z-Nti" secondAttribute="leading" id="dKr-LS-ODo"/>
<constraint firstAttribute="trailing" secondItem="XxD-eR-5bJ" secondAttribute="trailing" id="sgI-Eo-Kbg"/>
<constraint firstAttribute="trailing" secondItem="64u-wX-SQo" secondAttribute="trailing" id="xaO-8h-xBQ"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tDL-Sq-1fu">
<rect key="frame" x="0.0" y="156" width="308" height="78"/>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="PSD-nE-ULu">
<rect key="frame" x="0.0" y="185.5" width="308" height="65"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Confirm Password" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KBS-4G-SD1"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Confirm Password" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KBS-4G-SD1">
<rect key="frame" x="0.0" y="10" width="308" height="15"/>
<rect key="frame" x="0.0" y="0.0" width="308" height="15"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="15" id="2TV-Bk-yUv"/> <constraint firstAttribute="height" constant="15" id="2TV-Bk-yUv"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="y7m-hf-pxk"/> <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="y7m-hf-pxk"/>
@ -166,7 +143,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Confirm Password" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="tpF-H6-N6v"> <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Confirm Password" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="tpF-H6-N6v">
<rect key="frame" x="0.0" y="32" width="308" height="43"/>
<rect key="frame" x="0.0" y="22" width="308" height="43"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="43" id="PaW-a8-N5z"/> <constraint firstAttribute="height" constant="43" id="PaW-a8-N5z"/>
</constraints> </constraints>
@ -175,22 +152,12 @@
<textInputTraits key="textInputTraits" secureTextEntry="YES"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField> </textField>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="78" id="1bU-SV-Yr8"/>
<constraint firstItem="KBS-4G-SD1" firstAttribute="leading" secondItem="tDL-Sq-1fu" secondAttribute="leading" id="LEF-VQ-op6"/>
<constraint firstItem="tpF-H6-N6v" firstAttribute="leading" secondItem="tDL-Sq-1fu" secondAttribute="leading" id="Me9-8F-YZr"/>
<constraint firstItem="KBS-4G-SD1" firstAttribute="top" secondItem="tDL-Sq-1fu" secondAttribute="top" constant="10" id="PQG-PF-MBo"/>
<constraint firstAttribute="trailing" secondItem="KBS-4G-SD1" secondAttribute="trailing" id="oVU-Ju-T38"/>
<constraint firstItem="tpF-H6-N6v" firstAttribute="top" secondItem="KBS-4G-SD1" secondAttribute="bottom" constant="7" id="ugq-wQ-wrb"/>
<constraint firstAttribute="trailing" secondItem="tpF-H6-N6v" secondAttribute="trailing" id="z8q-Ak-gfc"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EEO-k1-4B9">
<rect key="frame" x="0.0" y="234" width="308" height="78"/>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="8Nu-iD-eBs">
<rect key="frame" x="0.0" y="260.5" width="308" height="65"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Date Of Birth" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NFk-sA-zvw"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Date Of Birth" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NFk-sA-zvw">
<rect key="frame" x="0.0" y="10" width="308" height="15"/>
<rect key="frame" x="0.0" y="0.0" width="308" height="15"/>
<constraints> <constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="9oy-1l-rRE"/> <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="9oy-1l-rRE"/>
<constraint firstAttribute="height" constant="15" id="u32-MN-7S7"/> <constraint firstAttribute="height" constant="15" id="u32-MN-7S7"/>
@ -200,7 +167,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Date Of Birth" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="rNx-p8-4EG"> <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Date Of Birth" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="rNx-p8-4EG">
<rect key="frame" x="0.0" y="32" width="308" height="43"/>
<rect key="frame" x="0.0" y="22" width="308" height="43"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="43" id="tZ3-Y0-teL"/> <constraint firstAttribute="height" constant="43" id="tZ3-Y0-teL"/>
</constraints> </constraints>
@ -209,25 +176,13 @@
<textInputTraits key="textInputTraits"/> <textInputTraits key="textInputTraits"/>
</textField> </textField>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="rNx-p8-4EG" secondAttribute="trailing" id="1xd-q1-ojY"/>
<constraint firstItem="rNx-p8-4EG" firstAttribute="leading" secondItem="EEO-k1-4B9" secondAttribute="leading" id="NxB-yc-BY3"/>
<constraint firstItem="NFk-sA-zvw" firstAttribute="top" secondItem="EEO-k1-4B9" secondAttribute="top" constant="10" id="aWw-9k-14f"/>
<constraint firstAttribute="height" constant="78" id="nj5-i8-Jhv"/>
<constraint firstItem="rNx-p8-4EG" firstAttribute="top" secondItem="NFk-sA-zvw" secondAttribute="bottom" constant="7" id="rOp-um-07N"/>
<constraint firstItem="NFk-sA-zvw" firstAttribute="leading" secondItem="EEO-k1-4B9" secondAttribute="leading" id="wJp-1o-CqA"/>
<constraint firstAttribute="trailing" secondItem="NFk-sA-zvw" secondAttribute="trailing" id="wrk-91-0cl"/>
</constraints>
</view>
</subviews>
</stackView> </stackView>
</subviews> </subviews>
</stackView> </stackView>
</subviews> </subviews>
</stackView> </stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uDy-XD-Zh8"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uDy-XD-Zh8">
<rect key="frame" x="89" y="476" width="203.5" height="26"/>
<rect key="frame" x="89" y="489.5" width="203.5" height="26"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Already have an Account?" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T2p-yQ-5An"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Already have an Account?" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T2p-yQ-5An">
<rect key="frame" x="4" y="2" width="153.5" height="22"/> <rect key="frame" x="4" y="2" width="153.5" height="22"/>
@ -259,7 +214,7 @@
</constraints> </constraints>
</view> </view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ruL-lG-yjF"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ruL-lG-yjF">
<rect key="frame" x="87.5" y="531" width="200" height="50"/>
<rect key="frame" x="87.5" y="544.5" width="200" height="50"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/> <color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="50" id="VQy-Cr-Jes"/> <constraint firstAttribute="height" constant="50" id="VQy-Cr-Jes"/>
@ -283,9 +238,13 @@
<constraints> <constraints>
<constraint firstItem="vrJ-M3-5iK" firstAttribute="top" secondItem="Qj5-Tz-cjD" secondAttribute="top" constant="10" id="8Sm-bM-52a"/> <constraint firstItem="vrJ-M3-5iK" firstAttribute="top" secondItem="Qj5-Tz-cjD" secondAttribute="top" constant="10" id="8Sm-bM-52a"/>
<constraint firstItem="uDy-XD-Zh8" firstAttribute="top" secondItem="vrJ-M3-5iK" secondAttribute="bottom" constant="20" id="E5f-u9-hKN"/> <constraint firstItem="uDy-XD-Zh8" firstAttribute="top" secondItem="vrJ-M3-5iK" secondAttribute="bottom" constant="20" id="E5f-u9-hKN"/>
<constraint firstItem="Atf-ra-7AT" firstAttribute="trailing" secondItem="DJI-ZZ-kWX" secondAttribute="trailing" id="Hyc-cr-fY9"/>
<constraint firstItem="Atf-ra-7AT" firstAttribute="top" secondItem="DJI-ZZ-kWX" secondAttribute="top" id="Ibb-f6-Yaf"/>
<constraint firstItem="uDy-XD-Zh8" firstAttribute="centerX" secondItem="TMW-5D-0hw" secondAttribute="centerX" constant="3" id="M5y-Kg-bad"/> <constraint firstItem="uDy-XD-Zh8" firstAttribute="centerX" secondItem="TMW-5D-0hw" secondAttribute="centerX" constant="3" id="M5y-Kg-bad"/>
<constraint firstItem="ruL-lG-yjF" firstAttribute="top" secondItem="uDy-XD-Zh8" secondAttribute="bottom" constant="29" id="Z7l-91-cMl"/> <constraint firstItem="ruL-lG-yjF" firstAttribute="top" secondItem="uDy-XD-Zh8" secondAttribute="bottom" constant="29" id="Z7l-91-cMl"/>
<constraint firstAttribute="bottom" secondItem="ruL-lG-yjF" secondAttribute="bottom" priority="250" constant="146" id="cOb-0s-AFE"/> <constraint firstAttribute="bottom" secondItem="ruL-lG-yjF" secondAttribute="bottom" priority="250" constant="146" id="cOb-0s-AFE"/>
<constraint firstItem="Atf-ra-7AT" firstAttribute="leading" secondItem="DJI-ZZ-kWX" secondAttribute="leading" id="eQq-kE-yBx"/>
<constraint firstItem="Atf-ra-7AT" firstAttribute="bottom" secondItem="DJI-ZZ-kWX" secondAttribute="bottom" id="iJl-M7-n74"/>
<constraint firstItem="vrJ-M3-5iK" firstAttribute="centerX" secondItem="TMW-5D-0hw" secondAttribute="centerX" id="p7R-us-Zjp"/> <constraint firstItem="vrJ-M3-5iK" firstAttribute="centerX" secondItem="TMW-5D-0hw" secondAttribute="centerX" id="p7R-us-Zjp"/>
<constraint firstItem="ruL-lG-yjF" firstAttribute="centerX" secondItem="TMW-5D-0hw" secondAttribute="centerX" id="pCV-8t-3yI"/> <constraint firstItem="ruL-lG-yjF" firstAttribute="centerX" secondItem="TMW-5D-0hw" secondAttribute="centerX" id="pCV-8t-3yI"/>
</constraints> </constraints>

12
GMERemittance/Module/Register/User Interface/View/RegisterViewController.swift

@ -7,6 +7,7 @@
// //
import UIKit import UIKit
import Localize_Swift
class RegisterViewController: UIViewController { class RegisterViewController: UIViewController {
@ -180,7 +181,16 @@ class RegisterViewController: UIViewController {
self.subHeaderLabel.text = StringConstants().registerSubtitle self.subHeaderLabel.text = StringConstants().registerSubtitle
self.userIdTitleLabel.text = "email_text".localized() self.userIdTitleLabel.text = "email_text".localized()
self.emailTextField.placeholder = StringConstants().useridPlaceholder self.emailTextField.placeholder = StringConstants().useridPlaceholder
self.passwordTitleLabel.text = StringConstants().passwordPlaceholder
let passwordPlaceholder = StringConstants().passwordPlaceholder
let attributedPasswordPlaceholder = NSMutableAttributedString(string: passwordPlaceholder)
let passwordPolicy = " (\("password_policy_error".localized()))"
let font = UIFont.init(name: "SanFranciscoDisplay-regular", size: 12)!
let myAttribute = [ NSAttributedString.Key.foregroundColor: UIColor.lightGray, NSAttributedStringKey.font : font ]
let attributedPasswordPolicy = NSAttributedString(string: passwordPolicy, attributes: myAttribute)
attributedPasswordPlaceholder.append(attributedPasswordPolicy)
self.passwordTitleLabel.attributedText = attributedPasswordPlaceholder
self.passwordTextField.placeholder = StringConstants().passwordPlaceholder self.passwordTextField.placeholder = StringConstants().passwordPlaceholder
self.confirmPasswordTitleLabel.text = StringConstants().confirmPasswordPlaceholder self.confirmPasswordTitleLabel.text = StringConstants().confirmPasswordPlaceholder
self.confirmPasswordTextfield.placeholder = StringConstants().confirmPasswordPlaceholder self.confirmPasswordTextfield.placeholder = StringConstants().confirmPasswordPlaceholder

Loading…
Cancel
Save