From 3d351cc83fe88e4dc2d0c7e7049579de2eaa3579 Mon Sep 17 00:00:00 2001 From: teegsh2 Date: Fri, 31 Mar 2023 04:33:36 +0530 Subject: [PATCH] bill Tabs Shifty red selectionLine issue fixed --- .../Atomic/Molecules/HorizontalCombinationViews/Tabs.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift b/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift index de9ef49f..4e340ab6 100644 --- a/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift +++ b/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift @@ -235,7 +235,9 @@ extension Tabs: UICollectionViewDelegateFlowLayout { public func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { guard let tabCell = cell as? TabItemCell else { return } if indexPath.row == selectedIndex { - moveSelectionLine(toIndex: indexPath, animated: false, cell: tabCell) + DispatchQueue.main.async { + self.moveSelectionLine(toIndex: indexPath, animated: false, cell: tabCell) + } } }