Browse Source

login view added in new module

pull/1/head
gme_2 6 years ago
parent
commit
667d951baa
  1. 236
      GMERemittance/Module/Login/User Interface/View/Login.storyboard
  2. 1
      GMERemittance/Module/Main/User Interface/View/MainViewController.swift

236
GMERemittance/Module/Login/User Interface/View/Login.storyboard

@ -1,12 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="HSb-ou-7T5">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="ezR-vY-eSd">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<customFonts key="customFonts">
<array key="SanFranciscoDisplay-Bold.otf">
<string>SanFranciscoDisplay-Bold</string>
</array>
<array key="SanFranciscoDisplay-Regular.otf">
<string>SanFranciscoDisplay-Regular</string>
</array>
<array key="SanFranciscoText-Regular.otf">
<string>SanFranciscoText-Regular</string>
</array>
</customFonts>
<scenes>
<!--Login-->
<scene sceneID="R60-Pu-Hpy">
@ -16,16 +29,229 @@
<viewControllerLayoutGuide type="top" id="y1H-iV-BwG"/>
<viewControllerLayoutGuide type="bottom" id="PYB-Kq-ghm"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="9Uc-9s-KgO">
<view key="view" contentMode="scaleToFill" id="Qsc-Es-JsT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Welcome to
Global Money Express" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IPn-xN-VGP">
<rect key="frame" x="24" y="74" width="308" height="69"/>
<constraints>
<constraint firstAttribute="width" constant="308" id="GeE-lZ-zDy"/>
<constraint firstAttribute="height" constant="69" id="ngS-hY-oDn"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Bold" family="San Francisco Display" pointSize="24"/>
<color key="textColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Login with your email address or mobile phone" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rfA-oh-ugp">
<rect key="frame" x="24" y="150" width="327" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="6jb-Si-8Pb"/>
</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="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EpY-he-nNx">
<rect key="frame" x="87.5" y="481" 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="BRW-fr-fND"/>
<constraint firstAttribute="height" constant="50" id="yhU-ML-bOb"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="18"/>
<state key="normal" title="Login">
<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>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Lzv-BO-ENj">
<rect key="frame" x="24" y="207" width="327" height="156"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="yfH-fe-bza">
<rect key="frame" x="0.0" y="0.0" width="327" height="156"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0Jp-81-Xnp">
<rect key="frame" x="0.0" y="0.0" width="327" height="78"/>
<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="JuF-Oo-Td7">
<rect key="frame" x="0.0" y="7" width="327" height="15"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="bT2-U8-TOW"/>
<constraint firstAttribute="height" constant="15" id="kIL-PG-DBJ"/>
</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>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Registered Email/ Mobile No." textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="lQ5-2T-qEu">
<rect key="frame" x="0.0" y="29" width="327" height="43"/>
<constraints>
<constraint firstAttribute="height" constant="43" id="CPz-lB-RmA"/>
</constraints>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="18"/>
<textInputTraits key="textInputTraits" autocorrectionType="no"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="lQ5-2T-qEu" firstAttribute="leading" secondItem="0Jp-81-Xnp" secondAttribute="leading" id="CmD-hu-ZKv"/>
<constraint firstAttribute="trailing" secondItem="lQ5-2T-qEu" secondAttribute="trailing" id="FZR-LQ-3dr"/>
<constraint firstAttribute="trailing" secondItem="JuF-Oo-Td7" secondAttribute="trailing" id="L0I-qK-0P2"/>
<constraint firstItem="JuF-Oo-Td7" firstAttribute="top" secondItem="0Jp-81-Xnp" secondAttribute="top" constant="7" id="ZF5-kL-BEp"/>
<constraint firstItem="lQ5-2T-qEu" firstAttribute="top" secondItem="JuF-Oo-Td7" secondAttribute="bottom" constant="7" id="hip-2d-hnv"/>
<constraint firstItem="JuF-Oo-Td7" firstAttribute="leading" secondItem="0Jp-81-Xnp" secondAttribute="leading" id="ici-mO-hWF"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OMI-2T-ee5">
<rect key="frame" x="0.0" y="78" width="327" height="78"/>
<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="0QG-tj-xd7">
<rect key="frame" x="0.0" y="10" width="327" height="15"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="dWX-n7-Cna"/>
<constraint firstAttribute="height" constant="15" id="k4R-A1-nn5"/>
</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>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="*********" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="kAf-ul-YN3">
<rect key="frame" x="0.0" y="32" width="327" height="43"/>
<constraints>
<constraint firstAttribute="height" constant="43" id="30C-hR-1Oe"/>
</constraints>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="18"/>
<textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="kAf-ul-YN3" firstAttribute="top" secondItem="0QG-tj-xd7" secondAttribute="bottom" constant="7" id="Fhn-pF-x0m"/>
<constraint firstItem="0QG-tj-xd7" firstAttribute="leading" secondItem="OMI-2T-ee5" secondAttribute="leading" id="QLy-N7-8hE"/>
<constraint firstAttribute="trailing" secondItem="kAf-ul-YN3" secondAttribute="trailing" id="dy9-lx-Juk"/>
<constraint firstAttribute="trailing" secondItem="0QG-tj-xd7" secondAttribute="trailing" id="eO9-zR-wGI"/>
<constraint firstItem="kAf-ul-YN3" firstAttribute="leading" secondItem="OMI-2T-ee5" secondAttribute="leading" id="hGE-eP-drm"/>
<constraint firstItem="0QG-tj-xd7" firstAttribute="top" secondItem="OMI-2T-ee5" secondAttribute="top" constant="10" id="v4d-Hv-gnb"/>
</constraints>
</view>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="156" id="D2F-55-Ic7"/>
<constraint firstItem="yfH-fe-bza" firstAttribute="top" secondItem="Lzv-BO-ENj" secondAttribute="top" id="P5E-hh-azE"/>
<constraint firstAttribute="trailing" secondItem="yfH-fe-bza" secondAttribute="trailing" id="X4U-vw-2xf"/>
<constraint firstAttribute="bottom" secondItem="yfH-fe-bza" secondAttribute="bottom" id="gSx-QU-XNO"/>
<constraint firstItem="yfH-fe-bza" firstAttribute="leading" secondItem="Lzv-BO-ENj" secondAttribute="leading" id="r84-mI-hes"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZoA-17-d0U">
<rect key="frame" x="99.5" y="388" width="176" height="60"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="u4u-GW-ALF">
<rect key="frame" x="30.5" y="4" width="114" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="114" id="sYg-gv-N4q"/>
<constraint firstAttribute="height" constant="20" id="t2i-Gz-Ba5"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<state key="normal" title="Forgot password?">
<color key="titleColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="C8L-ao-dhb">
<rect key="frame" x="85" y="49" width="87" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="3xr-kc-wRx"/>
<constraint firstAttribute="width" constant="87" id="Egv-fP-Jcp"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<state key="normal" title="Register Here">
<color key="titleColor" red="0.18039215689999999" green="0.19215686269999999" blue="0.57254901960000004" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="New to GME?" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="a0M-L3-FyN">
<rect key="frame" x="2" y="49" width="82" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="82" id="KFy-Vf-8XW"/>
<constraint firstAttribute="height" constant="17" id="wBl-5h-HNf"/>
</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>
<constraints>
<constraint firstItem="u4u-GW-ALF" firstAttribute="top" secondItem="ZoA-17-d0U" secondAttribute="top" constant="4" id="4ph-SV-u88"/>
<constraint firstItem="a0M-L3-FyN" firstAttribute="leading" secondItem="ZoA-17-d0U" secondAttribute="leading" constant="2" id="JKY-gE-pFa"/>
<constraint firstItem="u4u-GW-ALF" firstAttribute="centerX" secondItem="ZoA-17-d0U" secondAttribute="centerX" id="LsT-l1-Bjk"/>
<constraint firstItem="C8L-ao-dhb" firstAttribute="leading" secondItem="a0M-L3-FyN" secondAttribute="trailing" constant="1" id="M7b-Ms-nWO"/>
<constraint firstItem="a0M-L3-FyN" firstAttribute="top" secondItem="u4u-GW-ALF" secondAttribute="bottom" constant="25" id="NxR-DD-Fk2"/>
<constraint firstAttribute="height" constant="60" id="TIg-7a-Yxi"/>
<constraint firstAttribute="width" constant="176" id="YHa-Y0-7Wp"/>
<constraint firstItem="C8L-ao-dhb" firstAttribute="top" secondItem="u4u-GW-ALF" secondAttribute="bottom" constant="25" id="pJZ-EN-9R4"/>
</constraints>
</view>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="page1_image" translatesAutoresizingMaskIntoConstraints="NO" id="1uE-bC-h4u">
<rect key="frame" x="20" y="592" width="335" height="75"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="1uE-bC-h4u" firstAttribute="centerX" secondItem="Qsc-Es-JsT" secondAttribute="centerX" id="4iG-U7-gP1"/>
<constraint firstItem="COd-rO-Lzn" firstAttribute="trailing" secondItem="rfA-oh-ugp" secondAttribute="trailing" constant="24" id="7yp-jj-Cl3"/>
<constraint firstItem="EpY-he-nNx" firstAttribute="centerX" secondItem="Qsc-Es-JsT" secondAttribute="centerX" id="BSk-4U-pac"/>
<constraint firstItem="COd-rO-Lzn" firstAttribute="trailing" secondItem="Lzv-BO-ENj" secondAttribute="trailing" constant="24" id="Bfz-l1-Aop"/>
<constraint firstItem="ZoA-17-d0U" firstAttribute="centerX" secondItem="Qsc-Es-JsT" secondAttribute="centerX" id="GxX-Pt-1MG"/>
<constraint firstItem="Lzv-BO-ENj" firstAttribute="leading" secondItem="COd-rO-Lzn" secondAttribute="leading" constant="24" id="O7R-HD-z6r"/>
<constraint firstItem="IPn-xN-VGP" firstAttribute="top" secondItem="COd-rO-Lzn" secondAttribute="top" constant="10" id="QrS-3p-9iB"/>
<constraint firstItem="IPn-xN-VGP" firstAttribute="leading" secondItem="COd-rO-Lzn" secondAttribute="leading" constant="24" id="V3z-X6-ITE"/>
<constraint firstItem="EpY-he-nNx" firstAttribute="top" secondItem="ZoA-17-d0U" secondAttribute="bottom" constant="33" id="Yf1-xR-TDe"/>
<constraint firstItem="rfA-oh-ugp" firstAttribute="leading" secondItem="IPn-xN-VGP" secondAttribute="leading" id="aiR-zg-Hzg"/>
<constraint firstItem="Lzv-BO-ENj" firstAttribute="top" secondItem="rfA-oh-ugp" secondAttribute="bottom" constant="40" id="bQq-t8-ESi"/>
<constraint firstItem="COd-rO-Lzn" firstAttribute="trailing" secondItem="1uE-bC-h4u" secondAttribute="trailing" constant="20" id="cPW-Xf-PVM"/>
<constraint firstItem="1uE-bC-h4u" firstAttribute="leading" secondItem="COd-rO-Lzn" secondAttribute="leading" constant="20" id="dXU-Ul-GR2"/>
<constraint firstItem="1uE-bC-h4u" firstAttribute="bottom" secondItem="COd-rO-Lzn" secondAttribute="bottom" id="dbC-qa-ou9"/>
<constraint firstItem="ZoA-17-d0U" firstAttribute="top" secondItem="Lzv-BO-ENj" secondAttribute="bottom" constant="25" id="qdD-gR-jO1"/>
<constraint firstItem="rfA-oh-ugp" firstAttribute="top" secondItem="IPn-xN-VGP" secondAttribute="bottom" constant="7" id="qm9-M1-gaL"/>
</constraints>
<viewLayoutGuide key="safeArea" id="COd-rO-Lzn"/>
</view>
<navigationItem key="navigationItem" id="J8O-o1-aen"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-91" y="233"/>
<point key="canvasLocation" x="847.20000000000005" y="232.53373313343329"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="tLS-n5-1o3">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="ezR-vY-eSd" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="kJS-2I-TRN">
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="HSb-ou-7T5" kind="relationship" relationship="rootViewController" id="Yxz-D7-dzH"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="wzL-qY-MEt" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-92" y="232.53373313343329"/>
</scene>
</scenes>
<resources>
<image name="page1_image" width="300" height="75"/>
</resources>
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</document>

1
GMERemittance/Module/Main/User Interface/View/MainViewController.swift

@ -55,7 +55,6 @@ class MainViewController: UITabBarController {
viewController.tabBarItem.titlePositionAdjustment = UIOffsetMake(0, -5)
})
}
}
extension MainViewController: MainViewInterface {

Loading…
Cancel
Save