From 7d5c5fddde8456b78a4e52fe42dab9542d46e4b4 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 26 Sep 2023 15:46:16 -0400 Subject: [PATCH] Fix brave/brave-ios#7645: Explicitly end interactive tab reorder before starting again (brave/brave-ios#8161) --- .../Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift b/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift index 3f3c5df5ea32..a82857ff9db4 100644 --- a/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift +++ b/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift @@ -266,6 +266,9 @@ class TabsBarViewController: UIViewController { break } + // _UIDragSnappingFeedbackGenerator will occasionally throw an exception that its "already being + // interacted with" without explicitly ending the interactive movement on begin + collectionView.endInteractiveMovement() Task.delayed(bySeconds: 0.1) { @MainActor in self.collectionView.beginInteractiveMovementForItem(at: selectedIndexPath) }