Is it possible to have a collection view with horizontal paging, as well as vertical scrolling?
I would like to have the effect of pages of collection views, where the content can be scrolled vertically, say 20 items, with 5 visible at a time. I would also like to support pages horizontally which also hold 20 items, 5 visible at a time.
Is a single collection view able to handle this or should it be a scrollview with paging, containing collectionviews? That seems a bit weird and the gestures would interfere.
Currently I am only able to page in one direction, which stops scrolling in the other direction.
ok you want to make interface like Netflix app there is a lot of tutorial available to achieve this here is the link
1.https://ashfurrow.com/blog/putting-a-uicollectionview-in-a-uitableviewcell-in-swift/
2.http://www.thorntech.com/2015/08/want-your-swift-app-to-scroll-in-two-directions-like-netflix-heres-how/
the above tutorial helped me. and i had given an answer to similar type question
Swift - how to open another viewcontroller with CollectionViewCell inside UITableViewCell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With