larryryu / LSSwipeToDeleteCollectionViewLayout

The UICollectionViewLayout subclass adds swipe to delete functionality to a collectionview
MIT License
41 stars 4 forks source link

Dev: Added fading during cell displacement #1

Closed simonsterckx closed 10 years ago

simonsterckx commented 10 years ago

I've added an android like fade-during deletion. Thought of it immediately when I saw the swipe to delete ;)

larryryu commented 10 years ago

I think it is a fantastic idea, however i also think this is probably better wen added to a subclass. So i added a public header that a subclass can override to implement extra effects

- (void)didDisplaceSelectedAttributes:(UICollectionViewLayoutAttributes *)attributes withInitialCenter:(CGPoint)initialCenter;

You can added your fading code here! Thanks for the suggestion, much appreciated!

simonsterckx commented 10 years ago

Yeah I agree. I’ve added an example ‘Fade' subclass to my forked repo. Is it good enough to be added to your repo? ;)

/Simon

On 27-Jan-2014, at 11:19 am, Lukman Sanusi notifications@github.com wrote:

I think it is a fantastic idea, however i also think this is probably better wen added to a subclass. So i added a public header that a subclass can override to implement extra effects

  • (void)didDisplaceSelectedAttributes:(UICollectionViewLayoutAttributes *)attributes withInitialCenter:(CGPoint)initialCenter; You can added your fading code here! Thanks for the suggestion, much appreciated!

— Reply to this email directly or view it on GitHub.

larryryu commented 10 years ago

Yup looks good! you can go ahead and submit another pull request and i will merge it into my repo. Cheers!