I am writing a code for my school project. As a beginner would, I looked up on tutorials on youtube how to code. To summarize the hierarchy of my used objects:
Main collectionView
(first one loaded) for scrolling horizontally
between views.
List collectionView
for listing cells.
collectionViewCell
cells for listing information.
However, I am unable to find a way so that when I call a didSelectItemAt
function by tapping on one of the cells to push a new view
. I have tried creating a function that pushes the view in the MainViewController
and call it by creating an instance of the class
in didSelectItemAt
function but I had no luck.