Browse Source

title manged for picker views

pull/1/head
gme_2 6 years ago
parent
commit
3fe0e20458
  1. 29
      GMERemittance/Library/CountryWithFlagPicker/CountryPickerViewController.swift
  2. 29
      GMERemittance/Library/ItemPickerView/ItemsPickerViewController.swift
  3. 29
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/BankBranchPicker/BankBranchPickerViewController.swift
  4. 29
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/ViewModels/BankPicker/BankPickerViewController.swift

29
GMERemittance/Library/CountryWithFlagPicker/CountryPickerViewController.swift

@ -79,7 +79,34 @@ class CountryPickerViewController: UIViewController {
private func setTitle() {
self.titleLabel.text = (self.type?.rawValue ?? "").capitalized
var text = ""
guard let type = type else {return}
switch type {
case .bank:
text = "select_currency_text".localized()
case .branch:
text = "select_branch_text".localized()
case .country:
text = "select_country_text".localized()
case .currency:
text = "search_currency_text".localized()
case .district:
text = "select_district_text".localized()
case .occupation:
text = "select_occupation_text".localized()
case .relation:
text = "select_relation_text".localized()
case .sourceOfFund:
text = "select_source_of_fund_text"
case .state:
text = "province_placeholder_text".localized()
case .transferReasons:
text = "select_transfer_reason_text".localized()
case .verificationIdTypes:
text = "verification_id_placeholder_text".localized()
}
self.titleLabel.text = text.capitalized
}
private func setupTableView() {

29
GMERemittance/Library/ItemPickerView/ItemsPickerViewController.swift

@ -78,7 +78,34 @@ class ItemsPickerViewController: UIViewController {
}
private func setTitle() {
self.titleLabel.text = type?.rawValue
var text = ""
guard let type = type else {return}
switch type {
case .bank:
text = "select_currency_text".localized()
case .branch:
text = "select_branch_text".localized()
case .country:
text = "select_country_text".localized()
case .currency:
text = "search_currency_text".localized()
case .district:
text = "select_district_text".localized()
case .occupation:
text = "select_occupation_text".localized()
case .relation:
text = "select_relation_text".localized()
case .sourceOfFund:
text = "select_source_of_fund_text"
case .state:
text = "province_placeholder_text".localized()
case .transferReasons:
text = "select_transfer_reason_text".localized()
case .verificationIdTypes:
text = "verification_id_placeholder_text".localized()
}
self.titleLabel.text = text.capitalized
}
private func setupPlaces() {

29
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/BankBranchPicker/BankBranchPickerViewController.swift

@ -89,7 +89,34 @@ class BankBranchPickerViewController: UIViewController {
}
private func setTitle() {
self.titleLabel.text = "Select " + (self.type?.rawValue ?? "Location").capitalized
var text = ""
guard let type = type else {return}
switch type {
case .bank:
text = "select_currency_text".localized()
case .branch:
text = "select_branch_text".localized()
case .country:
text = "select_country_text".localized()
case .currency:
text = "search_currency_text".localized()
case .district:
text = "select_district_text".localized()
case .occupation:
text = "select_occupation_text".localized()
case .relation:
text = "select_relation_text".localized()
case .sourceOfFund:
text = "select_source_of_fund_text"
case .state:
text = "province_placeholder_text".localized()
case .transferReasons:
text = "select_transfer_reason_text".localized()
case .verificationIdTypes:
text = "verification_id_placeholder_text".localized()
}
self.titleLabel.text = text.capitalized
}
private func setupPlaces() {

29
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/ViewModels/BankPicker/BankPickerViewController.swift

@ -69,7 +69,34 @@ class BankPickerViewController: UIViewController {
}
private func setTitle() {
self.titleLabel.text = (self.type?.rawValue ?? "").capitalized
var text = ""
guard let type = type else {return}
switch type {
case .bank:
text = "select_currency_text".localized()
case .branch:
text = "select_branch_text".localized()
case .country:
text = "select_country_text".localized()
case .currency:
text = "search_currency_text".localized()
case .district:
text = "select_district_text".localized()
case .occupation:
text = "select_occupation_text".localized()
case .relation:
text = "select_relation_text".localized()
case .sourceOfFund:
text = "select_source_of_fund_text"
case .state:
text = "province_placeholder_text".localized()
case .transferReasons:
text = "select_transfer_reason_text".localized()
case .verificationIdTypes:
text = "verification_id_placeholder_text".localized()
}
self.titleLabel.text = text.capitalized
}
private func setupPlaces() {

Loading…
Cancel
Save