lxcid / LXReorderableCollectionViewFlowLayout

Extends `UICollectionViewFlowLayout` to support reordering of cells. Similar to long press and pan on books in iBook.
http://lxcid.com/
MIT License
1.86k stars 328 forks source link

Fix for crash in Swift when long pressing an empty area. #108

Closed ferhatozduran closed 7 years ago

ferhatozduran commented 8 years ago

In Swift collectionView:canMoveItemAtIndexPath: doesn't accept nil index path.

lxcid commented 7 years ago

Thanks. Unfortunately, we had the exact same naming as iOS 9's collection view data source. The best way to work around this is to namespace the API as provided at #101 but I haven't figure out an upgrade path for users of this library so I'm not too sure yet.

Either way, I'm hoping people was able to support iOS 9 at minimum soon so they can use the official API.