Closed MineRala closed 1 week ago
Same issue here when I have a lot of list items that fills the scren.
Same thing - more generally in a scrollable view
Anyone find a solution to this?
@aheze Can you share any solution for this issue. Scroll not working
Hi all, I got solution for this issue use .swipeActionWidth(50).
@jacobcavin @ngimelliUW @iAmNaz @MineRala
I've found that replacing a highPriorityGesture
in the library with a simple gesture
works better in a ScrollView. Also set .swipeMinimumDistance(30)
.
I've found that replacing a
highPriorityGesture
in the library with a simplegesture
works better in a ScrollView. Also set.swipeMinimumDistance(30)
.
Thanks, saved my life. 👍
No need to replace gesture - just setting . swipeMinimumDistance(24)
works for me.
THANK YOU ALL.
I used the SwipeAction library for the items in the list, this time the list does not scroll. I couldn't scroll because the cells were surrounded by SwipeAction. How can I solve the problem? List { ForEach(lists) { list in ZStack { SwipeView { GroupListView(list: list) .background(Color.white) .cornerRadius(10) .shadow(radius: 5) } trailingActions: {_ in editTrailingAction(for: list) deleteTrailingAction(for: list) } .swipeActionWidth(80) NavigationLink(destination: ListView(products: list.products, title: list.title)) { EmptyView() }.opacity(0.0) } .listRowBackground(Color.clear) .listRowSeparator(.hidden) } } .listStyle(.plain)