[cherry] [release-74-fix] [ios] Fixed min Viator suggestions count.

This commit is contained in:
Ilya Grechuhin 2017-07-24 13:14:03 +03:00 committed by Roman Kuznetsov
parent 953b416c85
commit e2067c3048

View file

@ -58,7 +58,7 @@ extension PPViatorCarouselCell: UICollectionViewDelegate, UICollectionViewDataSo
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return min(dataSource.count + 1, kMaximumNumberOfElements)
return min(dataSource.count, kMaximumNumberOfElements) + 1
}
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {