Skip to content

Commit

Permalink
Jax PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
KunJeongPark committed May 20, 2024
1 parent 07ba2dc commit f55c9fe
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Sources/PaymentButtons/PaymentButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit f55c9fe

Please sign in to comment.