From f55c9fe3884e459b0aa32bd6b4f762b3d29dd04e Mon Sep 17 00:00:00 2001 From: Victoria Park Date: Mon, 20 May 2024 14:02:00 -0700 Subject: [PATCH] Jax PR feedback --- Sources/PaymentButtons/PaymentButton.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Sources/PaymentButtons/PaymentButton.swift b/Sources/PaymentButtons/PaymentButton.swift index 25099f9a..5d91081c 100644 --- a/Sources/PaymentButtons/PaymentButton.swift +++ b/Sources/PaymentButtons/PaymentButton.swift @@ -334,12 +334,7 @@ public class PaymentButton: UIButton { } private func customizeAppearance() { - if self.color == .white { - self.containerView.layer.borderColor = UIColor.black.cgColor - self.containerView.layer.borderWidth = 2 - } else { - self.containerView.layer.borderColor = UIColor.clear.cgColor - self.containerView.layer.borderWidth = 0 - } + containerView.layer.borderColor = color == .white ? UIColor.black.cgColor : UIColor.clear.cgColor + containerView.layer.borderWidth = color == .white ? 2 : 0 } }