Skip to content

Commit

Permalink
Fix calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspik committed Jul 11, 2024
1 parent 17ced92 commit c3afc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KeyboardManager/KeyboardManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ open class KeyboardManager: NSObject, UIGestureRecognizerDelegate {
/// This value represents the size of the gap between the bottom of the screen and the bottom of the inputAccessoryView.
private var bottomGap: CGFloat {
if let inputAccessoryView = inputAccessoryView, let window = inputAccessoryView.window, let superView = inputAccessoryView.superview {
return window.frame.height - superView.convert(superView.frame, to: window).maxY
return window.frame.height - window.convert(superView.frame, to: window).maxY
}
return 0
}
Expand Down

0 comments on commit c3afc4a

Please sign in to comment.