Browse Source

removed auto end api while calculating exchange rates

pull/1/head
gme_2 6 years ago
parent
commit
ad8480512c
  1. 8
      GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift
  2. 4
      GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift

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

@ -188,6 +188,7 @@ class ExchangeRatesViewController: UIViewController {
self.hideProgressHud()
}) { (error) in
self.hideProgressHud()
self.view.endEditing(true)
self.alert(message: error.localizedDescription)
}
@ -218,7 +219,7 @@ class ExchangeRatesViewController: UIViewController {
func countrySelected(model: [ExchangeRateModel]) {
self.selectedExchageRateModel = model.first
self.calculateExchangeRate(nil)
// self.calculateExchangeRate(nil)
// show country with flag.
}
@ -307,6 +308,7 @@ class ExchangeRatesViewController: UIViewController {
self.exchangeRateModels = models
}) { (error) in
self.hideProgressHud()
self.view.endEditing(true)
self.alert(message: error.localizedDescription)
}
}
@ -347,6 +349,7 @@ class ExchangeRatesViewController: UIViewController {
}
func show(error: String) {
self.view.endEditing(true)
self.alert(message: error)
}
@ -446,7 +449,8 @@ extension ExchangeRatesViewController: FetchCountryCurrencyInformation, getExcha
extension ExchangeRatesViewController: UITextFieldDelegate {
func textFieldDidEndEditing(_ textField: UITextField) {
self.calculateExchangeRate(nil)
self.view.endEditing(true)
// self.calculateExchangeRate(nil)
}
}

4
GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift

@ -229,7 +229,7 @@ class SendMoneyExchangeRateViewController: UIViewController {
self.selectedCurrencyViewModel = model
calcBy.lowercased() == "c" ? (reciepientTextField.text = "") : (senderTextField.text = "")
}
self.calculate()
// self.calculate()
}
private func configureViews() {
@ -304,6 +304,6 @@ extension SendMoneyExchangeRateViewController {
extension SendMoneyExchangeRateViewController: UITextFieldDelegate {
func textFieldDidEndEditing(_ textField: UITextField) {
self.calculate()
// self.calculate()
}
}
Loading…
Cancel
Save