PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.21k stars 275 forks source link

Open detail view into collection view #129

Closed nacho-badia closed 5 years ago

nacho-badia commented 5 years ago

Hi Paolo, thanks for sharing this library.

I have a collection view that has a collection view as a cell and within this I show the cards, and there I need to open the detail. However, I think I have a problem with the context because it does nothing.

I have tried to pass the self value from the UICollectionView to the cell and pass the context to the shouldPresent function, but it does not work...

let infoVC : UIViewController = InfoViewController() card.shouldPresent(infoVC, from: mainVC)

Could you help me find my mistake or tell me how I can do it?

Thx!

nacho-badia commented 5 years ago

Hey! problem solved, it was effectively initializing badly in context.

Thank you!