Browse Source

iew optimized

pull/1/head
gme_2 6 years ago
parent
commit
3ab6bdeb19
  1. 6
      GMERemittance/AppDelegate.swift
  2. 31
      GMERemittance/Base.lproj/Main.storyboard

6
GMERemittance/AppDelegate.swift

@ -239,7 +239,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
let nav = UINavigationController()
if (UserDefaults.standard.object(forKey: "com.gmeremit.loginStatus") as! Bool) {
// login cha
guard (UserDefaults.standard.object(forKey: UserKeys.kyc) as? Bool) ?? false == true else {
let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main)
if let KYCPersonalInfoViewController = storyboard.instantiateViewController(withIdentifier: "KYCPersonalInfoViewController") as? KYCPersonalInfoViewController {
@ -268,9 +268,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main)
if let splashScreenViewController = storyboard.instantiateViewController(withIdentifier: "SplashScreenViewController") as? SplashScreenViewController {
nav.viewControllers = [splashScreenViewController]
// nav.viewControllers = [splashScreenViewController]
window?.rootViewController = nav
window?.rootViewController = splashScreenViewController
}
}
}

31
GMERemittance/Base.lproj/Main.storyboard

@ -39,26 +39,26 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="603"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="splash_logo" translatesAutoresizingMaskIntoConstraints="NO" id="kok-4B-wZk">
<rect key="frame" x="105" y="18.5" width="165" height="47"/>
<rect key="frame" x="105" y="30" width="165" height="47"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_ovalBackground" translatesAutoresizingMaskIntoConstraints="NO" id="rl9-fV-exP">
<rect key="frame" x="112.5" y="137" width="150" height="150"/>
<rect key="frame" x="112.5" y="77" width="150" height="150"/>
<constraints>
<constraint firstAttribute="width" constant="150" id="QpQ-Ls-Vc5"/>
<constraint firstAttribute="height" constant="150" id="dlr-f4-sM1"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hassle free money transfer to your loved ones" textAlignment="center" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PRr-8o-QvN">
<rect key="frame" x="34" y="323" width="308" height="43"/>
<rect key="frame" x="34" y="263" width="308" height="43"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Semibold" family="San Francisco Display" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_splashFirstScreen" translatesAutoresizingMaskIntoConstraints="NO" id="QrR-tP-oPJ">
<rect key="frame" x="162.5" y="187" width="50" height="50"/>
<rect key="frame" x="162.5" y="127" width="50" height="50"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fVu-CT-UjF">
<rect key="frame" x="88" y="534" width="200" height="50"/>
<rect key="frame" x="88" y="474" width="200" height="50"/>
<color key="backgroundColor" red="0.81568627450980391" green="0.0078431372549019607" blue="0.10588235294117647" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="S2I-i8-aRa"/>
@ -70,7 +70,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="x8u-cs-6O3">
<rect key="frame" x="88" y="470" width="200" height="50"/>
<rect key="frame" x="88" y="410" width="200" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="gma-62-erH"/>
</constraints>
@ -92,13 +92,13 @@
</connections>
</button>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dotUnselected" translatesAutoresizingMaskIntoConstraints="NO" id="bOs-5T-AWQ" userLabel="dotCenter">
<rect key="frame" x="184.5" y="421" width="7" height="7"/>
<rect key="frame" x="184.5" y="361" width="7" height="7"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dotUnselected" translatesAutoresizingMaskIntoConstraints="NO" id="X2I-Gg-zA9" userLabel="dotLeft">
<rect key="frame" x="168.5" y="421" width="7" height="7"/>
<rect key="frame" x="168.5" y="361" width="7" height="7"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dotUnselected" translatesAutoresizingMaskIntoConstraints="NO" id="9tc-ft-OVW" userLabel="dotRight">
<rect key="frame" x="200.5" y="421" width="7" height="7"/>
<rect key="frame" x="200.5" y="361" width="7" height="7"/>
</imageView>
</subviews>
<color key="backgroundColor" red="0.92941176470588238" green="0.10980392156862745" blue="0.14117647058823529" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@ -119,14 +119,14 @@
<constraint firstAttribute="trailing" secondItem="x8u-cs-6O3" secondAttribute="trailing" constant="87" id="cHO-Xt-AVw"/>
<constraint firstAttribute="trailing" secondItem="PRr-8o-QvN" secondAttribute="trailing" constant="33" id="cPZ-Ap-9Tf"/>
<constraint firstAttribute="trailing" secondItem="kok-4B-wZk" secondAttribute="trailing" constant="105" id="dG7-KD-4nm"/>
<constraint firstItem="kok-4B-wZk" firstAttribute="top" secondItem="xvT-RY-VmM" secondAttribute="top" constant="18.5" id="fV8-BQ-GnV"/>
<constraint firstItem="kok-4B-wZk" firstAttribute="top" secondItem="xvT-RY-VmM" secondAttribute="top" constant="30" id="fV8-BQ-GnV"/>
<constraint firstItem="QrR-tP-oPJ" firstAttribute="top" secondItem="rl9-fV-exP" secondAttribute="top" constant="50" id="hnl-Rk-e5x"/>
<constraint firstItem="kok-4B-wZk" firstAttribute="leading" secondItem="xvT-RY-VmM" secondAttribute="leading" constant="105" id="ihL-6i-3M9"/>
<constraint firstItem="bOs-5T-AWQ" firstAttribute="centerX" secondItem="xvT-RY-VmM" secondAttribute="centerX" id="mYa-5W-f8c"/>
<constraint firstItem="PRr-8o-QvN" firstAttribute="top" secondItem="rl9-fV-exP" secondAttribute="bottom" constant="36" id="nbB-fL-CBC"/>
<constraint firstItem="fVu-CT-UjF" firstAttribute="top" secondItem="x8u-cs-6O3" secondAttribute="bottom" constant="14" id="nqA-oq-top"/>
<constraint firstItem="fVu-CT-UjF" firstAttribute="leading" secondItem="xvT-RY-VmM" secondAttribute="leading" constant="88" id="pqN-BP-xHc"/>
<constraint firstItem="rl9-fV-exP" firstAttribute="top" secondItem="kok-4B-wZk" secondAttribute="bottom" constant="71.200000000000003" id="w9D-dL-ckG"/>
<constraint firstItem="rl9-fV-exP" firstAttribute="top" secondItem="kok-4B-wZk" secondAttribute="bottom" id="w9D-dL-ckG"/>
<constraint firstItem="PRr-8o-QvN" firstAttribute="leading" secondItem="xvT-RY-VmM" secondAttribute="leading" constant="34" id="weA-VT-9J8"/>
<constraint firstItem="rl9-fV-exP" firstAttribute="bottom" secondItem="QrR-tP-oPJ" secondAttribute="bottom" constant="50" id="xrS-Rd-EE0"/>
</constraints>
@ -134,12 +134,13 @@
</subviews>
<constraints>
<constraint firstItem="xvT-RY-VmM" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="9fT-XC-k8S"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="xvT-RY-VmM" secondAttribute="bottom" id="Adc-ek-52e"/>
<constraint firstItem="xvT-RY-VmM" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="I03-aH-3CM"/>
<constraint firstAttribute="bottom" secondItem="xvT-RY-VmM" secondAttribute="bottom" id="kjM-m0-Y6t"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="xvT-RY-VmM" secondAttribute="trailing" id="rdP-te-g8q"/>
<constraint firstItem="xvT-RY-VmM" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" id="x2W-vy-ijG"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<extendedEdge key="edgesForExtendedLayout"/>
<navigationItem key="navigationItem" id="g03-fP-Gmk"/>
<connections>
<outlet property="buttonLogin" destination="x8u-cs-6O3" id="Mxs-G3-2Q8"/>
@ -2812,6 +2813,7 @@
<!--Navigation Controller-->
<scene sceneID="raP-L9-9VT">
<objects>
<placeholder placeholderIdentifier="IBFirstResponder" id="Obb-md-3OC" userLabel="First Responder" sceneMemberID="firstResponder"/>
<navigationController storyboardIdentifier="MyNavigation" automaticallyAdjustsScrollViewInsets="NO" id="YOf-Fd-kYt" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" barStyle="black" translucent="NO" id="Tn5-1b-xua">
@ -2826,7 +2828,6 @@
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="p30-3y-QOq"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Obb-md-3OC" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-1041" y="63"/>
</scene>
@ -3586,7 +3587,7 @@
<inferredMetricsTieBreakers>
<segue reference="JAI-Ow-0Xw"/>
<segue reference="uMM-0h-PWi"/>
<segue reference="svy-hP-XC8"/>
<segue reference="RzV-Tj-vdq"/>
<segue reference="7yw-xl-KSz"/>
</inferredMetricsTieBreakers>
</document>
Loading…
Cancel
Save