How to create a horizontal Collection View in iOS swift?
Solution:
In your viewdidload add the below code and integrate the collection View delegate methods it will works good.Happy coding....
In your viewdidload add the below code and integrate the collection View delegate methods it will works good.Happy coding....
let layout = UICollectionViewFlowLayout(); layout.scrollDirection = .horizontal
self.CollView.collectionViewLayout = layout
Comments
Post a Comment