Skip to content

Commit 527c9f8

Browse files
authored
Merge pull request #56 from vinceyuan/swift-3.0
Call CollectionViewSectionedDataSource.moveItem if it exists. (on swift-3.0 branch)
2 parents 4b664f4 + 50eddb7 commit 527c9f8

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
@@ -212,6 +212,7 @@ public class CollectionViewSectionedDataSource<S: SectionModelType>
212212

213213
override func _rx_collectionView(_ collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: IndexPath, toIndexPath destinationIndexPath: IndexPath) {
214214
self._sectionModels.moveFromSourceIndexPath(sourceIndexPath, destinationIndexPath: destinationIndexPath)
215+
self.moveItem?(self, sourceIndexPath: sourceIndexPath, destinationIndexPath: destinationIndexPath)
215216
}
216217

217218
}

0 commit comments

Comments
 (0)