From 320b4f57bb9911dcea4802f0eeecbaaaf8ca88b7 Mon Sep 17 00:00:00 2001 From: thrillseek3r Date: Wed, 22 Dec 2021 11:44:48 +0300 Subject: [PATCH] fix scrollToItem add debugPrint --- Sources/FSPagerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift index 554a7af..5129008 100644 --- a/Sources/FSPagerView.swift +++ b/Sources/FSPagerView.swift @@ -512,7 +512,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega @objc(scrollToItemAtIndex:animated:) open func scrollToItem(at index: Int, animated: Bool) { guard index < self.numberOfItems else { - assertionFailure("index \(index) is out of range [0...\(self.numberOfItems-1)]") + debugPrint("index \(index) is out of range [0...\(self.numberOfItems-1)]") return } let indexPath = { () -> IndexPath in