From 6af168498a87295e1d4f897548515f242a7334a5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Sep 2025 09:34:22 +0000 Subject: [PATCH 1/2] Initial plan From 7fe17de06d8671f03db3cf45b47a351b0f3df0b1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Sep 2025 09:59:25 +0000 Subject: [PATCH 2/2] Changes before error encountered Co-authored-by: hackiftekhar <3831495+hackiftekhar@users.noreply.github.com> --- IQKeyboardManager/IQKeyboardManager.m | 4 ++-- .../IQKeyboardManager/IQKeyboardManager+Position.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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