I need to implement a reordering functionality in UICollectionView
, like reordering cells in UITableView
. Looking for a Swift implementation.
In reordering state of the collectionView
, one cell should be able to drag and drop to an other position, and then a delegate would be called to modify datasource accordingly.
Do you know any solution?
GitHub上的自定义collectionView
布局LXReorderableCollectionViewFlowLayout
确实支持您想要的东西,但是它是用Objective-C
编写的
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.