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) + } } }