Skip to content

Commit 36b6933

Browse files
authored
Merge pull request #55 from vinceyuan/master
Call CollectionViewSectionedDataSource.moveItem if it exists.
2 parents df9f56d + 0019ec5 commit 36b6933

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/DataSources/CollectionViewSectionedDataSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public class CollectionViewSectionedDataSource<S: SectionModelType>
205205

206206
override func _rx_collectionView(collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: NSIndexPath, toIndexPath destinationIndexPath: NSIndexPath) {
207207
self._sectionModels.moveFromSourceIndexPath(sourceIndexPath, destinationIndexPath: destinationIndexPath)
208+
self.moveItem?(self, sourceIndexPath: sourceIndexPath, destinationIndexPath: destinationIndexPath)
208209
}
209210

210211
}

0 commit comments

Comments
 (0)