Git Product home page Git Product logo

Comments (7)

amirdew avatar amirdew commented on May 18, 2024

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

from collectionviewpaginglayout.

xLuciferSx avatar xLuciferSx commented on May 18, 2024

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

from collectionviewpaginglayout.

amirdew avatar amirdew commented on May 18, 2024

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

from collectionviewpaginglayout.

xLuciferSx avatar xLuciferSx commented on May 18, 2024

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

from collectionviewpaginglayout.

xLuciferSx avatar xLuciferSx commented on May 18, 2024

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.

from collectionviewpaginglayout.

amirdew avatar amirdew commented on May 18, 2024

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

from collectionviewpaginglayout.

xLuciferSx avatar xLuciferSx commented on May 18, 2024

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!

from collectionviewpaginglayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.