ra1028 / RAReorderableLayout

A UICollectionView layout whitch can move item with drag and drop.
MIT License
867 stars 140 forks source link

cellForItemAt or cellForItemAtIndexPath #45

Closed mostafaasf closed 7 years ago

mostafaasf commented 7 years ago

After migrating to swift 3, cellForItemAtIndexPath needed to change to cellForItemAt, but when I changed it an error appeared saying:

Method 'collectionView(_:cellForItemAt:)' has different argument names from those required by protocol 'RAReorderableLayoutDataSource' ('collectionView(_:cellForItemAtIndexPath:)')

And suggests a quick fix to change it back to cellForItemAtIndexPath.

mostafaasf commented 7 years ago

Ooops was using an earlier version. Updated and it worked perfectly.