Browse Source

added design for language in splash screen

pull/1/head
gme_2 6 years ago
parent
commit
e35ab55978
  1. 42
      GMERemittance/Module/SplashScreen/User Interface/View/SplashScreen.storyboard
  2. 8
      GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift

42
GMERemittance/Module/SplashScreen/User Interface/View/SplashScreen.storyboard

@ -30,7 +30,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rya-vW-oho">
<rect key="frame" x="0.0" y="0.0" width="375" height="689"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="659"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="splash_logo" translatesAutoresizingMaskIntoConstraints="NO" id="BNn-h6-EZr">
<rect key="frame" x="104.5" y="30" width="166" height="90"/>
@ -39,7 +39,7 @@
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DFQ-aB-MeN">
<rect key="frame" x="112.5" y="170" width="150" height="150"/>
<rect key="frame" x="112.5" y="180" width="150" height="150"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_ovalBackground" translatesAutoresizingMaskIntoConstraints="NO" id="wTx-2C-aXn">
<rect key="frame" x="0.0" y="0.0" width="150" height="150"/>
@ -65,7 +65,7 @@
</constraints>
</view>
<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="xIR-gr-Rkn">
<rect key="frame" x="33.5" y="355" width="308" height="43"/>
<rect key="frame" x="33.5" y="365" width="308" height="43"/>
<constraints>
<constraint firstAttribute="width" constant="308" id="1c1-24-b1q"/>
<constraint firstAttribute="height" constant="43" id="6ZP-PP-o5T"/>
@ -75,7 +75,7 @@
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="196-Q3-KMs">
<rect key="frame" x="167" y="448" width="41" height="7"/>
<rect key="frame" x="167" y="428" width="41" height="7"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dotUnselected" translatesAutoresizingMaskIntoConstraints="NO" id="XaM-Bb-cbb" userLabel="dotLeft">
<rect key="frame" x="0.0" y="0.0" width="7" height="7"/>
@ -89,7 +89,7 @@
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="G73-dq-xvs">
<rect key="frame" x="88" y="495" width="200" height="50"/>
<rect key="frame" x="88" y="465" width="200" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="32w-qb-i02"/>
</constraints>
@ -111,7 +111,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xXT-1Y-c8Y">
<rect key="frame" x="88" y="559" width="200" height="50"/>
<rect key="frame" x="88" y="529" width="200" height="50"/>
<color key="backgroundColor" red="0.80784313725490198" green="0.043137254901960784" blue="0.14117647058823529" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="uKY-N1-RoR"/>
@ -122,25 +122,47 @@
<action selector="register:" destination="HSb-ou-7T5" eventType="touchUpInside" id="FcL-4Z-y2u"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ONN-vO-ntP">
<rect key="frame" x="37.5" y="120" width="300" height="45"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZdU-Ub-FUa">
<rect key="frame" x="0.0" y="0.0" width="300" height="45"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="ZdU-Ub-FUa" firstAttribute="leading" secondItem="ONN-vO-ntP" secondAttribute="leading" id="0iQ-hc-Yqj"/>
<constraint firstAttribute="trailing" secondItem="ZdU-Ub-FUa" secondAttribute="trailing" id="1b2-G7-aDN"/>
<constraint firstAttribute="width" constant="300" id="2L8-WH-zwc"/>
<constraint firstItem="ZdU-Ub-FUa" firstAttribute="top" secondItem="ONN-vO-ntP" secondAttribute="top" id="Fcm-5A-ali"/>
<constraint firstAttribute="height" constant="45" id="YV6-zu-mSt"/>
<constraint firstAttribute="bottom" secondItem="ZdU-Ub-FUa" secondAttribute="bottom" id="mBh-2b-Sr2"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="xXT-1Y-c8Y" firstAttribute="top" secondItem="G73-dq-xvs" secondAttribute="bottom" constant="14" id="05X-HH-zOg"/>
<constraint firstItem="ONN-vO-ntP" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="0sA-fh-N4h"/>
<constraint firstItem="xXT-1Y-c8Y" firstAttribute="leading" secondItem="rya-vW-oho" secondAttribute="leading" constant="88" id="3GM-N4-Yb1"/>
<constraint firstItem="BNn-h6-EZr" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="BD5-BN-O0S"/>
<constraint firstItem="196-Q3-KMs" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="H3c-u4-j6s"/>
<constraint firstItem="DFQ-aB-MeN" firstAttribute="top" secondItem="BNn-h6-EZr" secondAttribute="bottom" constant="50" id="IQq-bO-qSK"/>
<constraint firstItem="DFQ-aB-MeN" firstAttribute="top" secondItem="BNn-h6-EZr" secondAttribute="bottom" constant="60" id="IQq-bO-qSK"/>
<constraint firstAttribute="bottom" secondItem="xXT-1Y-c8Y" secondAttribute="bottom" constant="80" id="OHt-O2-fQE"/>
<constraint firstItem="G73-dq-xvs" firstAttribute="top" secondItem="196-Q3-KMs" secondAttribute="bottom" constant="40" id="VS5-fH-uca"/>
<constraint firstItem="G73-dq-xvs" firstAttribute="top" secondItem="196-Q3-KMs" secondAttribute="bottom" constant="30" id="VS5-fH-uca"/>
<constraint firstItem="G73-dq-xvs" firstAttribute="leading" secondItem="rya-vW-oho" secondAttribute="leading" constant="88" id="Yeb-0M-kUj"/>
<constraint firstAttribute="trailing" secondItem="G73-dq-xvs" secondAttribute="trailing" constant="87" id="cgt-7L-nox"/>
<constraint firstItem="xIR-gr-Rkn" firstAttribute="top" secondItem="DFQ-aB-MeN" secondAttribute="bottom" constant="35" id="clM-cf-ScL"/>
<constraint firstItem="DFQ-aB-MeN" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="hqp-u1-2tp"/>
<constraint firstAttribute="trailing" secondItem="xXT-1Y-c8Y" secondAttribute="trailing" constant="87" id="mgM-K0-LCa"/>
<constraint firstItem="BNn-h6-EZr" firstAttribute="top" secondItem="rya-vW-oho" secondAttribute="top" constant="30" id="qME-Af-FLX"/>
<constraint firstItem="ONN-vO-ntP" firstAttribute="top" secondItem="BNn-h6-EZr" secondAttribute="bottom" id="qdr-Yl-gco"/>
<constraint firstItem="xIR-gr-Rkn" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="ucz-qp-50S"/>
<constraint firstItem="196-Q3-KMs" firstAttribute="top" secondItem="xIR-gr-Rkn" secondAttribute="bottom" constant="50" id="whr-N1-J6a"/>
<constraint firstItem="196-Q3-KMs" firstAttribute="top" secondItem="xIR-gr-Rkn" secondAttribute="bottom" constant="20" id="whr-N1-J6a"/>
</constraints>
</view>
</subviews>
@ -173,6 +195,8 @@
<outlet property="imageViewDotRight" destination="zwr-Vy-PYs" id="Snz-cG-hIV"/>
<outlet property="imageViewHomeLogo" destination="G8I-TB-kIW" id="p4M-lW-AhN"/>
<outlet property="labelHomeDescription" destination="xIR-gr-Rkn" id="aJM-YA-KBS"/>
<outlet property="languageBackGroundView" destination="ONN-vO-ntP" id="Eiu-4X-2Kr"/>
<outlet property="languageLabel" destination="ZdU-Ub-FUa" id="e6q-sO-hAO"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/>

8
GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift

@ -32,6 +32,8 @@ class SplashScreenViewController: UIViewController {
@IBOutlet weak var buttonLogin: UIButton!
@IBOutlet weak var buttonSignUp: UIButton!
@IBOutlet weak var languageBackGroundView: UIView!
@IBOutlet weak var languageLabel: UILabel!
// MARK: Properties
@ -45,7 +47,7 @@ class SplashScreenViewController: UIViewController {
let imageThird = UIImage(named: "ic_splashThirdScreen")
var languages = ["English", "Korean", "Other"]
@ -104,6 +106,10 @@ class SplashScreenViewController: UIViewController {
view.addGestureRecognizer(leftSwipe)
view.addGestureRecognizer(rightSwipe)
self.languageBackGroundView.layer.cornerRadius = 10
self.languageBackGroundView.clipsToBounds = true
self.languageBackGroundView.layer.addShadow(offset: CGSize.init(width: 2, height: 2))
configureLanguage()
}

Loading…
Cancel
Save