Skip to content

Commit

Permalink
Adjust spacing for cvc recollection (stripe#3090)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj-stripe authored Nov 28, 2023
1 parent d3f328c commit 699f0d4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ class PreConfirmationViewController: UIViewController {
stackView.isLayoutMarginsRelativeArrangement = true
stackView.spacing = 10
stackView.axis = .vertical
stackView.setCustomSpacing(16, after: headerLabel)
stackView.setCustomSpacing(14, after: paymentContainerView)
[stackView].forEach {
$0.translatesAutoresizingMaskIntoConstraints = false
view.addSubview($0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class PaymentMethodInformationView: UIView {
addSubview($0)
}
NSLayoutConstraint.activate([
paymentMethodImage.leadingAnchor.constraint(equalTo: leadingAnchor, constant: defaultPadding*2),
paymentMethodImage.leadingAnchor.constraint(equalTo: leadingAnchor, constant: ElementsUI.contentViewInsets.leading),
paymentMethodImage.centerYAnchor.constraint(equalTo: centerYAnchor),
paymentMethodLabelPrimary.leadingAnchor.constraint(equalTo: paymentMethodImage.trailingAnchor, constant: defaultPadding),
paymentMethodLabelPrimary.centerYAnchor.constraint(equalTo: paymentMethodImage.centerYAnchor),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 699f0d4

Please sign in to comment.