Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Next cell is not tappable. #52

Closed
xLuciferSx opened this issue Sep 9, 2021 · 7 comments
Closed

Next cell is not tappable. #52

xLuciferSx opened this issue Sep 9, 2021 · 7 comments

Comments

@xLuciferSx
Copy link

I've build an app which will allow user to like and share quotes by using your library but the problem is that after a swipe next cell action buttons are not capable. We've tried to fix this issue by using your delegate method but it is not working.

Video attached - https://youtu.be/yVZlXM_TXbE

@amirdew
Copy link
Owner

amirdew commented Sep 13, 2021

Hey
In the video I see a red background
But you're saying the buttons aren't functional

Anyway, the only thing you need to do is making sure zPosition is provided correctly for each cell

See https://github.com/amirdew/CollectionViewPagingLayout/blob/master/Lib/TransformableView.swift

func zPosition(progress: CGFloat) -> Int

I can help better if you share a simple version of your code
Or use one of the examples to replicate the issue

@xLuciferSx
Copy link
Author

I'm using StackTransform and I have a red background to see if actual cell is moving but cell is not moving

@amirdew
Copy link
Owner

amirdew commented Sep 14, 2021

The cell doesn't move, the transform only applies to the 'cardView',
'cardView' is the first subview of the cel's 'contentView' by default, you can change it though,
See https://github.com/amirdew/CollectionViewPagingLayout/blob/master/Lib/Stack/StackTransformView.swift

But you don't need that you can just move all of the views to a subview

@xLuciferSx
Copy link
Author

xLuciferSx commented Sep 14, 2021

Here is my code which I am currently building. Would be great if you could have a look and help me to fix the issue?
CollectionViewPagingLayoutTest.zip

@xLuciferSx
Copy link
Author

Hey
In the video I see a red background
But you're saying the buttons aren't functional

Anyway, the only thing you need to do is making sure zPosition is provided correctly for each cell

See https://github.com/amirdew/CollectionViewPagingLayout/blob/master/Lib/TransformableView.swift

func zPosition(progress: CGFloat) -> Int

I can help better if you share a simple version of your code
Or use one of the examples to replicate the issue

Thanks for your comment. I've played with Z position but it didn't help. Still buttons are not clickable after swipe.

@amirdew
Copy link
Owner

amirdew commented Sep 17, 2021

I just checked your code, I noticed you copied the code to your project so it was outdated or modified version.
I changed it to Swift package manager and everything works now.
Sorry for delay, I had a busy week

CollectionViewPagingLayoutTest.zip

@amirdew amirdew closed this as completed Sep 17, 2021
@xLuciferSx
Copy link
Author

I just checked your code, I noticed you copied the code to your project so it was outdated or modified version.
I changed it to Swift package manager and everything works now.
Sorry for delay, I had a busy week

CollectionViewPagingLayoutTest.zip

Hi. Thank you very much! Now everything is working. I've got only few layout issues but i will try to fix them :) Thank you again!

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

No branches or pull requests

2 participants