简体   繁体   中英

Reordering UICollectionView cells in Swift

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM