Edited: I thought the solution was to make the segue from the view controller instead of from the cell, but as matt said, the segue was correct from the cell but I just had to remove the implementation of didSelectItemAt
2
solved Passing data from CollectionView to DetailVC in Swift 4