diff --git a/IQKeyboardManager/IQKeyboardManager.m b/IQKeyboardManager/IQKeyboardManager.m index 72325eab..f798349e 100644 --- a/IQKeyboardManager/IQKeyboardManager.m +++ b/IQKeyboardManager/IQKeyboardManager.m @@ -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; diff --git a/IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Position.swift b/IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Position.swift index 478aa439..55f21c6b 100644 --- a/IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Position.swift +++ b/IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Position.swift @@ -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