Skip to content

Commit

Permalink
Fix autolayout constraint with label on STPCardFormView
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj-stripe committed Nov 20, 2024
1 parent dd8a8a1 commit 9448124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ struct SwiftUICardFormView: View {

var body: some View {
VStack {
Spacer().layoutPriority(1)
STPCardFormView.Representable(paymentMethodParams: $paymentMethodParams,
isComplete: $cardFormIsComplete)
.padding()
Spacer().layoutPriority(1)
Button(action: {
print("Process payment...")
}, label: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ extension STPFormView {
equalTo: stackView.bottomAnchor,
constant: SectionView.titleVerticalMargin
),
bottomAnchor.constraint(equalTo: footerLabel.bottomAnchor),
])

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

0 comments on commit 9448124

Please sign in to comment.