Browse Source

add app version label in splash screen.

pull/1/head
InKwon James Kim 5 years ago
parent
commit
4f3dec7163
  1. BIN
      GMERemittance/.DS_Store
  2. 56
      GMERemittance/Module/SplashScreen/User Interface/View/SplashScreen.storyboard
  3. 2
      GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift

BIN
GMERemittance/.DS_Store

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

@ -29,17 +29,20 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rya-vW-oho">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalSpacing" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="idQ-Xy-Bxh">
<rect key="frame" x="20" y="0.0" width="335" height="637"/>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalSpacing" alignment="center" spacing="1" translatesAutoresizingMaskIntoConstraints="NO" id="idQ-Xy-Bxh">
<rect key="frame" x="20" y="0.0" width="335" height="622"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="6kh-QB-9Ob">
<rect key="frame" x="0.0" y="0.0" width="335" height="212.5"/>
<rect key="frame" x="0.0" y="0.0" width="335" height="180"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="splash_logo" translatesAutoresizingMaskIntoConstraints="NO" id="BNn-h6-EZr">
<rect key="frame" x="84.5" y="0.0" width="166" height="162.5"/>
<rect key="frame" x="84.5" y="0.0" width="166" height="130"/>
<constraints>
<constraint firstAttribute="height" constant="130" id="8MZ-k1-Njg"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ONN-vO-ntP">
<rect key="frame" x="10" y="162.5" width="315" height="50"/>
<rect key="frame" x="10" y="130" width="315" height="50"/>
<subviews>
<stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W5h-Sp-BqP">
<rect key="frame" x="0.0" y="0.0" width="315" height="50"/>
@ -117,16 +120,16 @@
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalSpacing" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="Vft-CU-APP">
<rect key="frame" x="7.5" y="261.5" width="320" height="212.5"/>
<rect key="frame" x="7.5" y="240.5" width="320" height="207"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DFQ-aB-MeN">
<rect key="frame" x="90.5" y="0.0" width="139" height="139.5"/>
<rect key="frame" x="93" y="0.0" width="134" height="134"/>
<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="139" height="139.5"/>
<rect key="frame" x="0.0" y="0.0" width="134" height="134"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_splashFirstScreen" translatesAutoresizingMaskIntoConstraints="NO" id="G8I-TB-kIW">
<rect key="frame" x="45.5" y="45.5" width="48" height="48"/>
<rect key="frame" x="43" y="43" width="48" height="48"/>
<constraints>
<constraint firstAttribute="width" secondItem="G8I-TB-kIW" secondAttribute="height" multiplier="1:1" id="Dil-tp-7wY"/>
</constraints>
@ -147,7 +150,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="40" y="149.5" width="240" height="43"/>
<rect key="frame" x="40" y="144" width="240" height="43"/>
<constraints>
<constraint firstAttribute="height" constant="43" id="eZ2-Bm-2fl"/>
</constraints>
@ -156,7 +159,7 @@
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="196-Q3-KMs">
<rect key="frame" x="137.5" y="202.5" width="45" height="10"/>
<rect key="frame" x="137.5" y="197" width="45" height="10"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" verticalHuggingPriority="251" image="dotUnselected" translatesAutoresizingMaskIntoConstraints="NO" id="XaM-Bb-cbb" userLabel="dotLeft">
<rect key="frame" x="0.0" y="1.5" width="8.5" height="7"/>
@ -180,7 +183,7 @@
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="j08-6S-3By">
<rect key="frame" x="40" y="523" width="255" height="114"/>
<rect key="frame" x="40" y="508" width="255" height="114"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="G73-dq-xvs">
<rect key="frame" x="0.0" y="0.0" width="255" height="50"/>
@ -222,21 +225,45 @@
<constraints>
<constraint firstItem="6kh-QB-9Ob" firstAttribute="leading" secondItem="idQ-Xy-Bxh" secondAttribute="leading" id="8oc-gP-nns"/>
<constraint firstAttribute="trailing" secondItem="6kh-QB-9Ob" secondAttribute="trailing" id="RLg-kI-in4"/>
<constraint firstItem="6kh-QB-9Ob" firstAttribute="height" secondItem="idQ-Xy-Bxh" secondAttribute="height" multiplier="1:3" id="T3d-4O-wKT"/>
<constraint firstItem="j08-6S-3By" firstAttribute="leading" secondItem="idQ-Xy-Bxh" secondAttribute="leading" constant="40" id="XHd-8a-2Yd"/>
<constraint firstAttribute="trailing" secondItem="j08-6S-3By" secondAttribute="trailing" constant="40" id="rrQ-0b-vn7"/>
<constraint firstItem="Vft-CU-APP" firstAttribute="height" secondItem="idQ-Xy-Bxh" secondAttribute="height" multiplier="1:3" id="uVF-3e-V35"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="2Nn-5E-IA8">
<rect key="frame" x="118.5" y="642" width="138" height="20"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="App Version" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oxi-rn-1LG">
<rect key="frame" x="0.0" y="0.0" width="66.5" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="kxe-TI-Sn3"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="13"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ng8-um-X90">
<rect key="frame" x="71.5" y="0.0" width="66.5" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="Gig-lH-WE5"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="13"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
</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 firstAttribute="bottom" secondItem="idQ-Xy-Bxh" secondAttribute="bottom" constant="30" id="1NR-I1-2GK"/>
<constraint firstItem="2Nn-5E-IA8" firstAttribute="top" secondItem="idQ-Xy-Bxh" secondAttribute="bottom" constant="20" id="0fV-Xi-0zC"/>
<constraint firstAttribute="trailing" secondItem="idQ-Xy-Bxh" secondAttribute="trailing" constant="20" id="4cT-Ki-7mO"/>
<constraint firstItem="ONN-vO-ntP" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="TGr-WQ-BHL"/>
<constraint firstAttribute="bottom" secondItem="2Nn-5E-IA8" secondAttribute="bottom" constant="5" id="U2G-qb-ERV"/>
<constraint firstItem="idQ-Xy-Bxh" firstAttribute="leading" secondItem="rya-vW-oho" secondAttribute="leading" constant="20" id="arT-Cq-T4L"/>
<constraint firstItem="idQ-Xy-Bxh" firstAttribute="top" secondItem="rya-vW-oho" secondAttribute="top" id="qzr-gl-OoE"/>
<constraint firstItem="2Nn-5E-IA8" firstAttribute="centerX" secondItem="rya-vW-oho" secondAttribute="centerX" id="uIL-Mc-krx"/>
</constraints>
</view>
</subviews>
@ -252,6 +279,7 @@
<extendedEdge key="edgesForExtendedLayout" bottom="YES"/>
<navigationItem key="navigationItem" id="jAg-jP-7tO"/>
<connections>
<outlet property="appVersionLabel" destination="Ng8-um-X90" id="UXi-on-j8X"/>
<outlet property="buttonLogin" destination="G73-dq-xvs" id="JbA-re-pVh"/>
<outlet property="buttonSignUp" destination="xXT-1Y-c8Y" id="699-2r-8l6"/>
<outlet property="flagImageView" destination="GIr-wO-yaG" id="SAM-i0-jFW"/>

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

@ -34,6 +34,7 @@ class SplashScreenViewController: UIViewController {
@IBOutlet private weak var languageBackGroundView: UIView!
@IBOutlet private weak var languageLabel: UILabel!
@IBOutlet private weak var flagImageView: UIImageView!
@IBOutlet private weak var appVersionLabel: UILabel!
private var languageTapGuesture: UITapGestureRecognizer?
// MARK: Properties
@ -134,6 +135,7 @@ class SplashScreenViewController: UIViewController {
view.addGestureRecognizer(rightSwipe)
setLanguageBackgroundView()
appVersionLabel.text = Utility.getAppVersion()
}
private func setLanguageBackgroundView() {

Loading…
Cancel
Save