mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Make KeyboardAvoider respect to safe area insets
This commit is contained in:
parent
eaedd478f1
commit
06d75eb6d1
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ final class KeyboardAvoider: NSObject {
|
|||
let keyboardFrameInView = view.convert(keyboardFrame, from: nil)
|
||||
|
||||
// Find how much the keyboard overlaps the scroll view
|
||||
let scrollViewBottomInset = scrollView.frame.maxY - keyboardFrameInView.origin.y
|
||||
let scrollViewBottomInset = max(scrollView.frame.maxY - keyboardFrameInView.origin.y - view.safeAreaInsets.bottom, 0)
|
||||
|
||||
UIView.animate(withDuration: animationDuration,
|
||||
delay: 0.0,
|
||||
|
|
Loading…
Reference in a new issue