I am trying to make below effect using UICollectionView and its working fine.
However when I scroll left and right sometimes left or right cell is hiding. I can't see 3 rows, I just see 2 rows. Either left or right gets hided something like below.
I know the solution for this is collectionview.clipsToBounds = false
, however cells are getting hided.
override func viewWillLayoutSubviews() {
print("viewWillLayoutSubviews")
hotelsCV.clipsToBounds = false
}
Any idea what I am doing wrong?
Below is my collection view frame.
Any idea what I am doing wrong?