|
@ -28,6 +28,10 @@ class BeneficiaryDetailHeaderView: UITableViewHeaderFooterView { |
|
|
} |
|
|
} |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
override class func awakeFromNib() { |
|
|
|
|
|
super.awakeFromNib() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func commonSetup() { |
|
|
func commonSetup() { |
|
|
locationTitleLabel.text = "country".localized().uppercased() |
|
|
locationTitleLabel.text = "country".localized().uppercased() |
|
|
let imagePath = GMEDB.shared.user.string(.profileImage) |
|
|
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.sd_setImage(with: url, placeholderImage: UIImage(named: "profile-1")) |
|
|
profileImage.rounded() |
|
|
profileImage.rounded() |
|
|
updateButton.set(cornerRadius: 10) |
|
|
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.set(borderWidth: 2, of: .init(hex: "#2E89FF")) |
|
|
updateButton.setTitleColor(.init(hex: "#2E89FF"), for: .normal) |
|
|
updateButton.setTitleColor(.init(hex: "#2E89FF"), for: .normal) |
|
|
} |
|
|
} |
|
|