Browse Source

issue fixing

v0.17
stepie.ub 1 year ago
parent
commit
f95f483f01
  1. 13
      GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailHeaderView.swift
  2. 3
      GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailViewController.swift

13
GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailHeaderView.swift

@ -28,6 +28,10 @@ class BeneficiaryDetailHeaderView: UITableViewHeaderFooterView {
}
*/
override class func awakeFromNib() {
super.awakeFromNib()
}
func commonSetup() {
locationTitleLabel.text = "country".localized().uppercased()
let imagePath = GMEDB.shared.user.string(.profileImage)
@ -35,10 +39,11 @@ class BeneficiaryDetailHeaderView: UITableViewHeaderFooterView {
profileImage.sd_setImage(with: url, placeholderImage: UIImage(named: "profile-1"))
profileImage.rounded()
updateButton.set(cornerRadius: 10)
updateButton.setTitle("Update", for: .normal)
DispatchQueue.main.async {
self.updateButton.titleLabel?.font = UIFont.systemFont(ofSize: 14, weight: .bold)
}
updateButton.setTitle("update_text".localized(), for: .normal)
// DispatchQueue.main.async {
self.updateButton.titleLabel?.font = .sanfrancisco(.semibold, size: 14)
self.updateButton.titleLabel?.textAlignment = .center
// }
updateButton.set(borderWidth: 2, of: .init(hex: "#2E89FF"))
updateButton.setTitleColor(.init(hex: "#2E89FF"), for: .normal)
}

3
GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailViewController.swift

@ -98,8 +98,9 @@ extension BeneficiaryDetailViewController: UITableViewDataSource, UITableViewDel
let cell = tableView.dequeueReusableCell(withIdentifier: BeneficiaryTableViewCell.identifier, for: indexPath) as! BeneficiaryTableViewCell
let status = (indexPath.row == self.selectedIndex)
print(status)
cell.isSelected(status)
cell.commonSetup(reciptent?.paymentMethods?.elementAt(index: indexPath.row))
cell.isSelected(status)
cell.onClickDeleteButton = {
self.alertWithOkCancel(type: .normal,message: "Are you sure, You want to delete beneficiary?", title: "Delete Beneficiary", okTitle: "Yes", cancelTitle: "No",
okAction: {

Loading…
Cancel
Save