diff --git a/GMERemittance/Module/ExchangeRate.storyboard b/GMERemittance/Module/ExchangeRate.storyboard index efd2c0db..bc8dbbf2 100644 --- a/GMERemittance/Module/ExchangeRate.storyboard +++ b/GMERemittance/Module/ExchangeRate.storyboard @@ -277,47 +277,52 @@ - + - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + - - - - - + - - - - + @@ -370,17 +375,13 @@ + - - - - - diff --git a/GMERemittance/Module/ExchangeRateViewControllerV2.swift b/GMERemittance/Module/ExchangeRateViewControllerV2.swift index c52f756e..cea0ecee 100644 --- a/GMERemittance/Module/ExchangeRateViewControllerV2.swift +++ b/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