MTCardLayout icon indicating copy to clipboard operation
MTCardLayout copied to clipboard

Do not collapse all cards

Open BobDG opened this issue 10 years ago • 2 comments

In the layout effects struct there is a boolean called: 'collapsesAll' with the description: // Allows all cards to collapse to the bottom.

Unfortunately, this is not used anywhere in the code and I would love to have this functionality, I tried to implement it myself but couldn't do it..

Any help?

BobDG avatar Jun 01 '15 13:06 BobDG

Just for preventing the collapsing of all cards you can check this class MTCollectionViewCardLayoutHelper

there is this method

  • (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context

you can comment the code inside, to get what you want.

saurabh143 avatar Dec 05 '15 08:12 saurabh143

@saurabh143 thanks for letting me know, I'll check it out!

BobDG avatar Dec 07 '15 09:12 BobDG