From 78802790f4a919c57703773fae86e9d80ce31a19 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:15 +0000 Subject: [PATCH 1/2] Initial plan From 0b2eccc2424c6e53dae4a36d4eb070695e8a8d70 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Sep 2025 09:42:47 +0000 Subject: [PATCH 2/2] Fix iPad floating keyboard Apple Pencil touch freeze issue Co-authored-by: hackiftekhar <3831495+hackiftekhar@users.noreply.github.com> --- IQKeyboardManager/IQKeyboardManager.m | 7 +++++++ .../Resign/IQKeyboardResignHandler.swift | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/IQKeyboardManager/IQKeyboardManager.m b/IQKeyboardManager/IQKeyboardManager.m index 72325eab..f8c1df6b 100644 --- a/IQKeyboardManager/IQKeyboardManager.m +++ b/IQKeyboardManager/IQKeyboardManager.m @@ -1868,6 +1868,13 @@ -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveT } } + // (Issue #2109) Ignore Apple Pencil touches to prevent conflicts with floating keyboard on iPad + if (@available(iOS 9.1, *)) { + if (touch.type == UITouchTypePencil) { + return NO; + } + } + return YES; } diff --git a/IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift b/IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift index 2ce06679..143026cf 100644 --- a/IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift +++ b/IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift @@ -144,6 +144,13 @@ import IQTextInputViewNotification return false } + // (Issue #2109) Ignore Apple Pencil touches to prevent conflicts with floating keyboard on iPad + if #available(iOS 9.1, *) { + if touch.type == .pencil { + return false + } + } + return true } }