diff --git a/Sources/TabView.swift b/Sources/TabView.swift index 0a870b7..5c7400e 100644 --- a/Sources/TabView.swift +++ b/Sources/TabView.swift @@ -221,7 +221,7 @@ extension TabView { } else { currentIndex = index } - let indexPath = IndexPath(item: index, section: 0) + let indexPath = IndexPath(item: currentIndex, section: 0) moveCurrentBarView(indexPath, animated: true, shouldScroll: true) }