From 606efe072a4ee8dfe32f5b4d30330363372b6c7b Mon Sep 17 00:00:00 2001 From: Lucian Cerbu Date: Wed, 28 Feb 2024 17:27:51 +0200 Subject: [PATCH] Changed Apple Pay button. --- .../Storage/ViewControllers/DonateViewController.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Permanent/Modules/Storage/ViewControllers/DonateViewController.swift b/Permanent/Modules/Storage/ViewControllers/DonateViewController.swift index 69d75062..dc938b62 100644 --- a/Permanent/Modules/Storage/ViewControllers/DonateViewController.swift +++ b/Permanent/Modules/Storage/ViewControllers/DonateViewController.swift @@ -18,7 +18,7 @@ class DonateViewController: BaseViewController { @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var contextLabel: UILabel! - let applePayButton: UIButton = UIButton(type: .roundedRect) + let applePayButton: PKPaymentButton = PKPaymentButton(paymentButtonType: .plain, paymentButtonStyle: .black) static var invalidCharacterSet: CharacterSet = { var characterSet = CharacterSet.decimalDigits @@ -50,12 +50,8 @@ class DonateViewController: BaseViewController { donateTextField.clipsToBounds = true donateTextField.delegate = self - applePayButton.setTitle("Endow with Apple Pay®", for: .normal) - applePayButton.backgroundColor = .black - applePayButton.setFont(TextFontStyle.style35.font) - applePayButton.setTitleColor(.white, for: .normal) - applePayButton.layer.cornerRadius = 5 applePayButton.translatesAutoresizingMaskIntoConstraints = false + applePayButton.cornerRadius = 5 applePayButton.addTarget(self, action: #selector(applePayButtonPressed(_:)), for: .touchUpInside) paymentView.addSubview(applePayButton)