Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions IQKeyboardManager/IQKeyboardManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,8 @@ -(void)adjustPosition
bottomInset = MAX(_startingContentInsets.bottom, bottomInset);
bottomScrollIndicatorInset = MAX(_startingScrollIndicatorInsets.bottom, bottomScrollIndicatorInset);

bottomInset -= strongLastScrollView.safeAreaInsets.bottom;
bottomScrollIndicatorInset -= strongLastScrollView.safeAreaInsets.bottom;
// Note: Safe area adjustment is already included in kbSize calculation
// Removing redundant safe area subtraction to fix extra bottom edge inset (Issue #2112)

UIEdgeInsets movedInsets = strongLastScrollView.contentInset;
movedInsets.bottom = bottomInset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,8 @@ private extension IQKeyboardManager {
bottomScrollIndicatorInset = CGFloat.maximum(startingScrollInset.bottom,
bottomScrollIndicatorInset)

bottomInset -= lastScrollView.safeAreaInsets.bottom
bottomScrollIndicatorInset -= lastScrollView.safeAreaInsets.bottom
// Note: Safe area adjustment is already included in kbSize calculation
// Removing redundant safe area subtraction to fix extra bottom edge inset (Issue #2112)

var movedInsets: UIEdgeInsets = lastScrollView.contentInset
movedInsets.bottom = bottomInset
Expand Down