I have a vertical scroll view collection that spans the entire screen on the device (i.e. full screen mode).
I register Swipe Left and Right gestures for my collection view.
//------------right swipe gestures in collectionView--------------// let swipeRight = UISwipeGestureRecognizer(target: self, action:
Problem: Scrolling left and right callback gestures do not work when the Collection View scrolls vertically.
Is there an easy way around this problem.
here is my whole ViewController class
import UIKit class ViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource { @IBOutlet weak var collectionView: UICollectionView! let reuseIdentifier = "cell" // also enter this string as the cell identifier in the storyboard var items = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48"] override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. collectionView.dataSource = self collectionView.delegate = self //------------right swipe gestures in collectionView--------------// let swipeRight = UISwipeGestureRecognizer(target: self, action:
here is my collection view looks like

EDIT 1
Solved, for solutions click here