Ramotion / expanding-collection

:octocat: ExpandingCollection is an animated material design UI card peek/pop controller. iOS library made by @Ramotion
https://www.ramotion.com/smartphone-app-development-ui-library-to-peek-and-pop-cards/
MIT License
5.55k stars 530 forks source link

Is it possible to have only the collection view with front view, but no back view? #70

Closed junweimah closed 6 years ago

junweimah commented 6 years ago

Hi,

I wanted to implement this library in my project, but however I don't need to have user to tap in to view details, just to scroll on the cards collection.

I have set up the basics xib, cell and delegate methods, but when I run it, i am getting at line 154 of BasePageCollectionCell.swift:

backContainerView.layer.masksToBounds = true

It is fatal error because it is nil, and it is nil because I don't need a back view.

Is it possible to just set it up to have only the collection but no the back view?

Thanks

0ber commented 6 years ago

In demo project I set isHidden to true for backView set hidden

result: result

junweimah commented 6 years ago

Thanks!