From 84579764bba629dcc9cb690f46b8b9e500ff0a7b Mon Sep 17 00:00:00 2001 From: Virginia Cook Date: Tue, 12 Dec 2023 17:10:11 -0500 Subject: [PATCH] fix --- .../Source/PaymentSheet/Views/SheetFooterView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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([