diff --git a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetFooterView.swift b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetFooterView.swift index fd9202e078a..37ae86726ef 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetFooterView.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetFooterView.swift @@ -91,10 +91,12 @@ class SheetFooterView: UIView { // Device does not have a bottom safe area inset, add padding bottomConstraint = stackView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -20) } + } else { + bottomConstraint = stackView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -20) } } else { // Fallback for earlier iOS versions - bottomConstraint = stackView.bottomAnchor.constraint(equalTo: bottomAnchor) + bottomConstraint = stackView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -20) } NSLayoutConstraint.activate([