Giter Site home page Giter Site logo

Comments (4)

alikaragoz avatar alikaragoz commented on July 22, 2024

I've added a flag that can help you check id the cell is being dragged and another one to prevent a cell from being dragged. A good combination of the two flags will allow you to achieve your goal ✌️
(See dff6e89 and 508340d)

from mcswipetableviewcell.

moleksyuk avatar moleksyuk commented on July 22, 2024

@alikaragoz thanks for your fix but seems like you didn't understand me.
I meant a flag something like:

@property(nonatomic, assign) BOOL allowMultipleDrag;

By default it's YES to be compatible with previous implementations, but setting it to NO will disable draggin 2+ cells in one time.

You fix requires extending your MCSwipeTableViewCell and override - (void)handlePanGestureRecognizer:(UIPanGestureRecognizer *)gesture; where swipe is handled.

For me as a client api developer I can only configure cell and receive notification from your cell, nothing more.

So, does your fix mean such single swipe handling?

from mcswipetableviewcell.

alikaragoz avatar alikaragoz commented on July 22, 2024

I perfectly understood what you said but you have to manage the "draggability" of the cells at the table view level and not the cells themselves.
The tableview has to detect which cell has the flag isDragging set to YES and then send a message to the other cells : [cell setShouldDrag:NO]

If you don't agree with this, please don't use this project or even open issues.

Thanks 😘

from mcswipetableviewcell.

moleksyuk avatar moleksyuk commented on July 22, 2024

Thanks, now I've got your point of view.

from mcswipetableviewcell.

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.