Skip to content

Commit 9448124

Browse files
committed
Fix autolayout constraint with label on STPCardFormView
1 parent dd8a8a1 commit 9448124

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Example/UI Examples/UI Examples/Source/SwiftUICardFormView.swift

+2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ struct SwiftUICardFormView: View {
1616

1717
var body: some View {
1818
VStack {
19+
Spacer().layoutPriority(1)
1920
STPCardFormView.Representable(paymentMethodParams: $paymentMethodParams,
2021
isComplete: $cardFormIsComplete)
2122
.padding()
23+
Spacer().layoutPriority(1)
2224
Button(action: {
2325
print("Process payment...")
2426
}, label: {

StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift

-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ extension STPFormView {
652652
equalTo: stackView.bottomAnchor,
653653
constant: SectionView.titleVerticalMargin
654654
),
655-
bottomAnchor.constraint(equalTo: footerLabel.bottomAnchor),
656655
])
657656

658657
// the initial layout of a SectionView will log constraint errors if it has a row with multiple

0 commit comments

Comments
 (0)