Browse Source

--amend

pull/1/head
gme_2 6 years ago
parent
commit
c202d1eb3d
  1. 79
      GMERemittance/Module/ExchangeRate.storyboard
  2. 13
      GMERemittance/Module/ExchangeRateViewControllerV2.swift

79
GMERemittance/Module/ExchangeRate.storyboard

@ -277,47 +277,52 @@
</textField>
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vWR-7J-y0X">
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="rOp-OF-ZDh">
<rect key="frame" x="222" y="0.0" width="125" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="kLE-Nh-0Kr">
<rect key="frame" x="8" y="17" width="110" height="26"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vWR-7J-y0X">
<rect key="frame" x="0.0" y="0.0" width="125" height="60"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Korea" translatesAutoresizingMaskIntoConstraints="NO" id="n7n-Nb-tKN">
<rect key="frame" x="0.0" y="0.0" width="26" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="ssh-Oa-ckc"/>
<constraint firstAttribute="width" constant="26" id="zgo-8H-RoK"/>
</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="b4i-3O-vgA">
<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>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_dropdownSmall" translatesAutoresizingMaskIntoConstraints="NO" id="xpN-Wm-8Uh">
<rect key="frame" x="84" y="0.0" width="26" height="26"/>
<color key="tintColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="26" id="cfA-fM-CbD"/>
<constraint firstAttribute="height" constant="26" id="tti-j3-P3O"/>
</constraints>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="kLE-Nh-0Kr">
<rect key="frame" x="8" y="17" width="110" height="26"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Korea" translatesAutoresizingMaskIntoConstraints="NO" id="n7n-Nb-tKN">
<rect key="frame" x="0.0" y="0.0" width="26" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="ssh-Oa-ckc"/>
<constraint firstAttribute="width" constant="26" id="zgo-8H-RoK"/>
</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="b4i-3O-vgA">
<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>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_dropdownSmall" translatesAutoresizingMaskIntoConstraints="NO" id="xpN-Wm-8Uh">
<rect key="frame" x="84" y="0.0" width="26" height="26"/>
<color key="tintColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="26" id="cfA-fM-CbD"/>
<constraint firstAttribute="height" constant="26" id="tti-j3-P3O"/>
</constraints>
</imageView>
</subviews>
</stackView>
</subviews>
</stackView>
<color key="backgroundColor" red="0.1764705882" green="0.21176470589999999" blue="0.56078431370000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<gestureRecognizers/>
<constraints>
<constraint firstAttribute="width" constant="125" id="72z-1j-JFa"/>
<constraint firstItem="kLE-Nh-0Kr" firstAttribute="centerY" secondItem="vWR-7J-y0X" secondAttribute="centerY" id="A2g-UC-JNB"/>
<constraint firstItem="kLE-Nh-0Kr" firstAttribute="centerX" secondItem="vWR-7J-y0X" secondAttribute="centerX" id="hw7-d8-UoG"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.1764705882" green="0.21176470589999999" blue="0.56078431370000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<gestureRecognizers/>
<constraints>
<constraint firstAttribute="width" constant="125" id="72z-1j-JFa"/>
<constraint firstItem="kLE-Nh-0Kr" firstAttribute="centerY" secondItem="vWR-7J-y0X" secondAttribute="centerY" id="A2g-UC-JNB"/>
<constraint firstItem="kLE-Nh-0Kr" firstAttribute="centerX" secondItem="vWR-7J-y0X" secondAttribute="centerX" id="hw7-d8-UoG"/>
<constraint firstAttribute="width" constant="125" id="9yK-4r-7Sm"/>
</constraints>
<connections>
<outletCollection property="gestureRecognizers" destination="8M1-OD-adV" appends="YES" id="QlQ-lU-tJs"/>
</connections>
</view>
</stackView>
</subviews>
</stackView>
</subviews>
@ -370,17 +375,13 @@
<outlet property="backgroundViewCountryLabel1" destination="zR9-kN-ITg" id="KNZ-oz-3i3"/>
<outlet property="backgroundViewCountryLabel2" destination="vWR-7J-y0X" id="QBG-52-O3L"/>
<outlet property="collectionView" destination="lhq-nU-cv4" id="vjG-n9-fvP"/>
<outlet property="countryListStackView" destination="rOp-OF-ZDh" id="Udh-uv-TOP"/>
<outlet property="dropDownImageView" destination="xpN-Wm-8Uh" id="IC7-Fv-21R"/>
<outlet property="exchangeBackground1" destination="4XL-3K-VkX" id="HTy-DT-6ON"/>
<outlet property="exchangeBackground2" destination="69X-Pz-6k0" id="Pg6-gT-p08"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="VYj-EQ-txx" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="8M1-OD-adV">
<connections>
<action selector="showCountryList:" destination="5jm-3W-Xy4" id="Hjp-Oo-w7G"/>
</connections>
</tapGestureRecognizer>
</objects>
<point key="canvasLocation" x="-84" y="26.53673163418291"/>
</scene>

13
GMERemittance/Module/ExchangeRateViewControllerV2.swift

@ -18,8 +18,9 @@ class ExchangeRateViewControllerV2: UIViewController {
@IBOutlet weak var dropDownImageView: UIImageView!
@IBOutlet weak var backgroundViewCountryLabel1: UIView!
@IBOutlet weak var backgroundViewCountryLabel2: UIView!
@IBOutlet weak var countryListStackView: UIStackView!
var countryListTapGuesture: UITapGestureRecognizer?
var selectedPaymentIndex: IndexPath = IndexPath.init(row: 0, section: 0)
@ -28,6 +29,7 @@ class ExchangeRateViewControllerV2: UIViewController {
super.viewDidLoad()
setup()
setupDelegates()
setupTargets()
setupNavigation()
// Do any additional setup after loading the view.
}
@ -40,7 +42,7 @@ class ExchangeRateViewControllerV2: UIViewController {
// IBActions
@IBAction func showCountryList(_ sender: UITapGestureRecognizer) {
@objc func showCountryList(_ sender: UITapGestureRecognizer) {
print("show Country List")
}
@ -51,6 +53,13 @@ class ExchangeRateViewControllerV2: UIViewController {
}
private func setupTargets() {
let tapGuesture = UITapGestureRecognizer(target: self, action: #selector(self.showCountryList(_:)))
self.countryListTapGuesture = tapGuesture
self.countryListStackView.addGestureRecognizer(self.countryListTapGuesture!)
}
private func setupDelegates() {
self.collectionView.delegate = self
self.collectionView.dataSource = self

Loading…
Cancel
Save