From ea9af711a4d207e3af999ab764b4c234e6a20a20 Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 16 Jul 2024 12:15:06 -0700 Subject: [PATCH] Fix keyboard math typo (#3779) Fixes math bug in #3770 --- .../ViewControllers/BottomSheetViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift index c2734bc6b34..78e2c75ad3b 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift @@ -392,7 +392,7 @@ class BottomSheetViewController: UIViewController, BottomSheetPresentable { // Account for edge case where keyboard is taller than our view if keyboardViewEndFrame.origin.y < 0 { // If keyboard frame is negative relative to our own, keyboardInViewHeight (the intersection of keyboard and our view) won't include it and we need to add the extra height: - keyboardInViewHeight += keyboardViewEndFrame.origin.y + keyboardInViewHeight += -keyboardViewEndFrame.origin.y } if notification.name == UIResponder.keyboardWillHideNotification { bottomAnchor.constant = 0