I'm currently implementing an App with horizontal collectionView and a navigationBar at the top. The horizontal view are implemented with the page-Mode activated, so the user can select between 4 tabs. Each of the horizontal collectionView has vertical collectionViews in them so the user can also scroll vertically.
Now I want to interact with the user, when he pressed one of the vertical collectionView items. When he pressed an item, a new view should come up without going over the navigationBar at the top. So basically the vertical collection view should be replaced with a different one.
The problem I'm facing is, that I don't know how I can inform my controller that an item is pressed. I know that I can get the selected item when calling didSelectItemAt
but how can I implement, that my controller knows that the item is pressed and now has to load a new view also in regards of the MVC model.
Another problem I'm facing is, that I don't know how I can push a new controller that doesn't go over the navigationBar. For this question I have found an answer under this link: Swift 4 - Push a ViewController from a UICollectionView Cell but unfortunally this didn't work for me.