Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CubeAttributesAnimator Not Working #17

Closed
bariscck opened this issue Apr 21, 2017 · 9 comments
Closed

CubeAttributesAnimator Not Working #17

bariscck opened this issue Apr 21, 2017 · 9 comments

Comments

@bariscck
Copy link

Firstly thank you for this library, exactly what i need is the library :) I tried all of Attributes Animators, they all working well but CubeAttributesAnimator not working.

@KelvinJin
Copy link
Owner

Hmm, can you provide a sample project to demonstrate the issue? I need more information on this.

@yukitoto
Copy link

I encountered this issue too.

@yukitoto
Copy link

This is very simple sample project.
CubeAnimationSample.zip

@yukitoto
Copy link

@KelvinJin What cause this bug?

@yukitoto
Copy link

This is storyboard version.
CubeAnimationSample 2.zip

@yukitoto
Copy link

This bug of non-storyboard is fixed if I use contentView of UICollectionView.

@KelvinJin
Copy link
Owner

@yukitoto Hey, thanks for the sample project. Yeah, the issue is the contentView. The CubeAttributesAnimator will only transform contentView of the UICollectionViewCell, which means the background colour of the cell has to be clear (or all the same for all cells) in order for it to make sense. You can, however, change the background colour of the contentView!

I'll have to document this somewhere...

@boominadhaprakash
Copy link

@KelvinJin I am unable to understand, how to add the CubeAttributesAnimator to contentView of cell.
I am not using Storyboard or XIB. I have added the AnimatedCollectionViewLayout as UICollectionViewLayout Programmatically. But not working. Can you please assist me?

@boominadhaprakash
Copy link

boominadhaprakash commented Dec 15, 2017

@KelvinJin I have fixed by adding all subviews inside the cell.ContentView. previously I have added to cell subview. I unable to caught the previous comment points. I got the issue. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants