fatbobman / SwipeCell

SwipeCell is a SwiftUI library, used to achieve the left and right sliding menu effect similar to the iOS mail app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not work together with Button

skywalkerlw opened this issue · comments

commented

Here is an example

Button(action: {
                    self.clickItemAt(item) //this will never be called
                }, label: {
                    MessageListItem(message: item, forceRead: extraReadId.contains(item.id))
                        .roundedCornorArea()
                        .swipeCell(cellPosition: .right, leftSlot: nil, rightSlot: createSlotDelete(index: viewModel.items.firstIndex(of: item) ?? 0))
                })

Any proposal?

sorry , only for onTapGesture

#9