Code Monkey home page Code Monkey logo

Comments (1)

DominikButz avatar DominikButz commented on July 17, 2024

Hi Jesse, thanks for spotting this. I have just released a new version where the scrolling issue is fixed... However, I discovered that there are more issues with Lists unfortunately. When you add several buttons to the swipe-to-reveal menu, it seems that all button actions are triggered although only one is tapped. This does not happen when using this package in a ScrollView + LazyVStack.
You can try it out by downloading a new branch of the example repository I just created (see the link in the readme, then switch to the ListView-branch of the example) or just try it out in your own code after updating to the new version 2.1.2.
A few options you have to work around this problem:

  • consider to use ScrollView+ LazyVStack (it's more flexible anyway). If you need drag and drop, you can still use the .onDrag and onDrop modifiers (LazyVStacks don't support the edit mode provided by Apple for List views).
  • Don't use this package at all but make your project iOS 15 only. From iOS 15, swipe cell actions can be added through a new SwiftUI 3 feature.

from swipecellsui.

Related Issues (4)

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.