fix scrollToItem add debugPrint

This commit is contained in:
thrillseek3r 2021-12-22 11:44:48 +03:00
parent c1718fb5c1
commit 320b4f57bb
1 changed files with 1 additions and 1 deletions

View File

@ -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