PaoloCuscela / Cards

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

ShouldPresent View Controller Cycle #111

Closed omarmhaimdat closed 5 years ago

omarmhaimdat commented 5 years ago

I have created a custom card, and when I open the card the ViewController works perfectly.

The problem occurs when I open it again, it seems that it doesn't load the view properly and in fact it doesn't load at all.

I do everything programmatically.

here's a gif to reproduce the problem:

ezgif com-optimize-3

omarmhaimdat commented 5 years ago

Can someone please help me with this? @PaoloCuscela @amagrude?

Thank you in advance.

omarmhaimdat commented 5 years ago

Maybe I have found the problem, it seems that when I use dequeueReusableCell in my collectionView, the instance on detailVC gets deleted when the card is not on display.

But I still haven't found any solution yet.

PaoloCuscela commented 5 years ago

@asbis managed to solve this on issue #104 Maybe he can help with this a little more...

omarmhaimdat commented 5 years ago

Thank you @PaoloCuscela it does solve the problem !