Skip to content

Commit

Permalink
Fix keyboard math typo (#3779)
Browse files Browse the repository at this point in the history
Fixes math bug in #3770
  • Loading branch information
yuki-stripe committed Jul 16, 2024
1 parent 9d413f2 commit ea9af71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea9af71

Please sign in to comment.