From 2b9877dc6819dfc4b0bb4c5cfea9e31f7649a54f Mon Sep 17 00:00:00 2001 From: Alexey Gerasimov Date: Wed, 6 Dec 2017 17:18:40 +0300 Subject: [PATCH] IndexPaths duplication on reload fixed --- Sources/ButtonBarPagerTabStripViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ButtonBarPagerTabStripViewController.swift b/Sources/ButtonBarPagerTabStripViewController.swift index 908142c..5c45ea7 100644 --- a/Sources/ButtonBarPagerTabStripViewController.swift +++ b/Sources/ButtonBarPagerTabStripViewController.swift @@ -267,7 +267,7 @@ open class ButtonBarPagerTabStripViewController: PagerTabStripViewController, Pa } if !indexPathsToReload.isEmpty { - buttonBarView.reloadItems(at: indexPathsToReload) + buttonBarView.reloadItems(at: Array(Set(indexPathsToReload))) } }