I have successfully implemented a UICollectionView. Is it possible to change the scrollDirection?
Can you please show how to implement it pro
if you did not use storyboard and all is done with programmatically. so when we do that like this:
lazy var snapCollectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout()
let collectionView = UICollectionView(frame: CGRect.zero,
collectionViewLayout: layout)
layout.scrollDirection = .horizontal
collectionView.delegate = self
collectionView.dataSource = self
collectionView.backgroundColor = UIColor(named: "background")
return collectionView
}()