Browse Source

chsnged the position of exchange rates

pull/1/head
gme_2 6 years ago
parent
commit
143ec77e90
  1. 201
      GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRates.storyboard
  2. 2
      GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift

201
GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRates.storyboard

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@ -25,7 +24,7 @@
<!--Exchange Rates View Controller-->
<scene sceneID="IKD-v4-MtS">
<objects>
<viewController storyboardIdentifier="ExchangeRatesViewController" id="wkj-Ga-GJC" customClass="ExchangeRatesViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="ExchangeRatesViewController" id="wkj-Ga-GJC" customClass="ExchangeRatesViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Gev-HF-fnm">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@ -37,93 +36,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="EEF-HP-StG">
<rect key="frame" x="10" y="20" width="355" height="353"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="25L-1L-t4e">
<rect key="frame" x="0.0" y="0.0" width="355" height="60"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AGt-UA-d1E">
<rect key="frame" x="0.0" y="0.0" width="355" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aph-by-xzw">
<rect key="frame" x="8" y="0.0" width="347" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalCentering" translatesAutoresizingMaskIntoConstraints="NO" id="tLv-zB-NOh">
<rect key="frame" x="0.0" y="0.0" width="222" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jZ5-gd-eBb">
<rect key="frame" x="0.0" y="0.0" width="222" height="6"/>
<constraints>
<constraint firstAttribute="height" constant="6" id="Jcf-AU-ztI"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="You Send" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="453-p5-JCH">
<rect key="frame" x="0.0" y="6" width="222" height="14"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="12"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="10,000,000" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="g3K-Yw-9MX">
<rect key="frame" x="0.0" y="20" width="222" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="zxw-hb-bmw"/>
</constraints>
<color key="textColor" red="0.92941176469999998" green="0.1137254902" blue="0.1960784314" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Semibold" family="San Francisco Display" pointSize="19"/>
<textInputTraits key="textInputTraits" keyboardType="decimalPad"/>
</textField>
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Iu4-4L-RhQ">
<rect key="frame" x="222" y="0.0" width="125" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="n3f-Vu-f8f">
<rect key="frame" x="25.5" y="17" width="74" height="26"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Korea" translatesAutoresizingMaskIntoConstraints="NO" id="y0f-Vr-Roy">
<rect key="frame" x="0.0" y="0.0" width="26" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="aV1-0h-Jm6"/>
<constraint firstAttribute="width" constant="26" id="gWd-Oa-Km0"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="KRW" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bdQ-zf-eZs">
<rect key="frame" x="36" y="0.0" width="38" height="26"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Bold" family="San Francisco Display" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" red="0.1764705882" green="0.21176470589999999" blue="0.56078431370000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="n3f-Vu-f8f" firstAttribute="centerX" secondItem="Iu4-4L-RhQ" secondAttribute="centerX" id="1EE-h6-Him"/>
<constraint firstItem="n3f-Vu-f8f" firstAttribute="centerY" secondItem="Iu4-4L-RhQ" secondAttribute="centerY" id="Gaz-GJ-vKR"/>
<constraint firstAttribute="width" constant="125" id="Q6Y-5r-Zha"/>
</constraints>
</view>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="aph-by-xzw" secondAttribute="trailing" id="JK2-hd-XNG"/>
<constraint firstItem="aph-by-xzw" firstAttribute="top" secondItem="AGt-UA-d1E" secondAttribute="top" id="bY5-K3-md0"/>
<constraint firstItem="aph-by-xzw" firstAttribute="leading" secondItem="AGt-UA-d1E" secondAttribute="leading" constant="8" id="lwt-qL-Scw"/>
<constraint firstAttribute="bottom" secondItem="aph-by-xzw" secondAttribute="bottom" id="zDB-H8-56M"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="60" id="sKB-V9-sb2"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="eZQ-ZM-qFq">
<rect key="frame" x="0.0" y="80" width="355" height="193"/>
<rect key="frame" x="10" y="20" width="355" height="368"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="qGh-mt-tYG">
<rect key="frame" x="0.0" y="0.0" width="355" height="154"/>
@ -153,7 +66,7 @@
<inset key="sectionInset" minX="10" minY="0.0" maxX="10" maxY="0.0"/>
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" misplaced="YES" reuseIdentifier="ExchangeRateCollectionViewCell" id="7fr-jc-meS" customClass="ExchangeRateCollectionViewCell" customModule="GMERemittance" customModuleProvider="target">
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="ExchangeRateCollectionViewCell" id="7fr-jc-meS" customClass="ExchangeRateCollectionViewCell" customModule="GME_Remit" customModuleProvider="target">
<rect key="frame" x="10" y="10" width="115" height="115"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO">
@ -164,7 +77,7 @@
<rect key="frame" x="0.0" y="0.0" width="115" height="115"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_bank" translatesAutoresizingMaskIntoConstraints="NO" id="e26-PY-aIL">
<rect key="frame" x="20.5" y="8" width="74" height="71"/>
<rect key="frame" x="20" y="8" width="75" height="71"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" secondItem="e26-PY-aIL" secondAttribute="height" multiplier="62:59" id="pPp-Td-0Eu"/>
@ -218,9 +131,98 @@
</subviews>
</stackView>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="154" id="GgL-cn-eyU"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="25L-1L-t4e">
<rect key="frame" x="0.0" y="174" width="355" height="60"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AGt-UA-d1E">
<rect key="frame" x="0.0" y="0.0" width="355" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aph-by-xzw">
<rect key="frame" x="8" y="0.0" width="347" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalCentering" translatesAutoresizingMaskIntoConstraints="NO" id="tLv-zB-NOh">
<rect key="frame" x="0.0" y="0.0" width="222" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jZ5-gd-eBb">
<rect key="frame" x="0.0" y="0.0" width="222" height="6"/>
<constraints>
<constraint firstAttribute="height" constant="6" id="Jcf-AU-ztI"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="You Send" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="453-p5-JCH">
<rect key="frame" x="0.0" y="6" width="222" height="14"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="12"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="10,000,000" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="g3K-Yw-9MX">
<rect key="frame" x="0.0" y="20" width="222" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="zxw-hb-bmw"/>
</constraints>
<color key="textColor" red="0.92941176469999998" green="0.1137254902" blue="0.1960784314" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Semibold" family="San Francisco Display" pointSize="19"/>
<textInputTraits key="textInputTraits" keyboardType="decimalPad"/>
</textField>
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Iu4-4L-RhQ">
<rect key="frame" x="222" y="0.0" width="125" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="n3f-Vu-f8f">
<rect key="frame" x="25.5" y="17" width="74" height="26"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Korea" translatesAutoresizingMaskIntoConstraints="NO" id="y0f-Vr-Roy">
<rect key="frame" x="0.0" y="0.0" width="26" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="aV1-0h-Jm6"/>
<constraint firstAttribute="width" constant="26" id="gWd-Oa-Km0"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="KRW" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bdQ-zf-eZs">
<rect key="frame" x="36" y="0.0" width="38" height="26"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Bold" family="San Francisco Display" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" red="0.1764705882" green="0.21176470589999999" blue="0.56078431370000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="n3f-Vu-f8f" firstAttribute="centerX" secondItem="Iu4-4L-RhQ" secondAttribute="centerX" id="1EE-h6-Him"/>
<constraint firstItem="n3f-Vu-f8f" firstAttribute="centerY" secondItem="Iu4-4L-RhQ" secondAttribute="centerY" id="Gaz-GJ-vKR"/>
<constraint firstAttribute="width" constant="125" id="Q6Y-5r-Zha"/>
</constraints>
</view>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="aph-by-xzw" secondAttribute="trailing" id="JK2-hd-XNG"/>
<constraint firstItem="aph-by-xzw" firstAttribute="top" secondItem="AGt-UA-d1E" secondAttribute="top" id="bY5-K3-md0"/>
<constraint firstItem="aph-by-xzw" firstAttribute="leading" secondItem="AGt-UA-d1E" secondAttribute="leading" constant="8" id="lwt-qL-Scw"/>
<constraint firstAttribute="bottom" secondItem="aph-by-xzw" secondAttribute="bottom" id="zDB-H8-56M"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="60" id="sKB-V9-sb2"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="eZQ-ZM-qFq">
<rect key="frame" x="0.0" y="254" width="355" height="34"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zIZ-e5-h3R">
<rect key="frame" x="0.0" y="159" width="355" height="34"/>
<rect key="frame" x="0.0" y="0.0" width="355" height="34"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mfS-0Z-txA">
<rect key="frame" x="0.0" y="0.0" width="10" height="34"/>
@ -252,12 +254,9 @@
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="193" id="pcR-b7-58p"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2dJ-m4-ieK">
<rect key="frame" x="0.0" y="293" width="355" height="60"/>
<rect key="frame" x="0.0" y="308" width="355" height="60"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xnw-Oo-65c">
<rect key="frame" x="0.0" y="0.0" width="355" height="60"/>
@ -301,7 +300,7 @@
<rect key="frame" x="0.0" y="0.0" width="125" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="T9h-bm-oDr">
<rect key="frame" x="8" y="17" width="110" height="26"/>
<rect key="frame" x="7.5" y="17" width="110" height="26"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Korea" translatesAutoresizingMaskIntoConstraints="NO" id="Avu-kr-1cs">
<rect key="frame" x="0.0" y="0.0" width="26" height="26"/>
@ -359,7 +358,7 @@
</subviews>
</stackView>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="H6t-AW-Fpn">
<rect key="frame" x="87.5" y="397" width="200" height="50"/>
<rect key="frame" x="87.5" y="412" 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="Z0u-lJ-VEU"/>
@ -422,7 +421,7 @@
<outlet property="exchangeBackground2" destination="xnw-Oo-65c" id="AAp-Qo-9jN"/>
<outlet property="exchangeRateInfoLabel" destination="fEt-T6-kPD" id="KGd-ws-hYl"/>
<outlet property="paymentModeStackView" destination="eZQ-ZM-qFq" id="5S2-5n-A53"/>
<outlet property="paymentModeStackViewConstraint" destination="pcR-b7-58p" id="2rs-mV-JYv"/>
<outlet property="paymentModeStackViewConstraint" destination="GgL-cn-eyU" id="iNe-p5-0At"/>
<outlet property="reciepientTextField" destination="dTw-1k-6zQ" id="MRk-KS-OWU"/>
<outlet property="senderTextField" destination="g3K-Yw-9MX" id="tT2-Dp-c29"/>
<outlet property="transferFeeInfoLabel" destination="5j8-YV-UND" id="Wa0-5G-EXA"/>

2
GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift

@ -25,7 +25,7 @@ class ExchangeRatesViewController: UIViewController {
struct Constants {
static let transferFeeDetailText = "Transfer Fee Included"
static let currentExchangeRateText = "Current Exchange Rate"
static let paymentModeHeightConstant: CGFloat = 193
static let paymentModeHeightConstant: CGFloat = 154
}
struct ApiConstants {

Loading…
Cancel
Save