I am trying to do a Collection View whereby someone selects a cell and for each selection it takes them to another View Controller that ho
Collection View
cell
View Controller
Swift 3.0
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let iPath = self.collectionView.indexPathsForSelectedItems let indexPath : NSIndexPath = iPath![0] as NSIndexPath let rowIndex = indexPath.row print("row index = \(rowIndex)") }