From c9afafc4b42ccc062c526a26b1ebd76819a6d74c Mon Sep 17 00:00:00 2001 From: Masato Otake Date: Fri, 29 Sep 2017 16:48:16 +0900 Subject: [PATCH] Fixed weird animation in moveCurrentBarView when isInfinity is true --- Sources/TabView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }