|
|
@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|