This repository was archived by the owner on Nov 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 165
A bit sticky Drag & sort #228
Copy link
Copy link
Open
Description
See the video (i have a list of 30 items), the problem is on around 2nd second
Kapture.2021-10-25.at.16.25.43.mp4
My code
VStack {
InlineNotification(message: "Drag & drop to reorder items", style: .warning)
ASTableView
{
ASSection<Int>(
id: 0,
data: sortedList,
dataID: \.self,
dragDropConfig: ASDragDropConfig(onMoveItem: { from, to in
move(from, to)
})
// onSwipeToDelete: { index, _ -> Bool in
// withAnimation
// {
// _ = self.sortedList.remove(at: index)
// }
// return true
// }
)
{ item, _ in
GoodsListItemSimple(imageUrl: item.goodsImg, name: item.goodsName)
.padding(12)
}
}
.onReachedBottom {
}
}Metadata
Metadata
Assignees
Labels
No labels