Skip to content

Commit 72309a6

Browse files
committed
Merge branch 'master' into swift-3.0
2 parents 1dc1310 + c2aa45c commit 72309a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/DataSources/CollectionViewSectionedDataSource.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ public class CollectionViewSectionedDataSource<S: SectionModelType>
204204
}
205205

206206
override func _rx_collectionView(_ collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: IndexPath, toIndexPath destinationIndexPath: IndexPath) {
207-
self._sectionModels.moveFromSourceIndexPath(sourceIndexPath, destinationIndexPath: destinationIndexPath)
207+
if self.moveItem != nil {
208+
self.moveItem!(self, sourceIndexPath: sourceIndexPath, destinationIndexPath: destinationIndexPath)
209+
} else {
210+
self._sectionModels.moveFromSourceIndexPath(sourceIndexPath, destinationIndexPath: destinationIndexPath)
211+
}
208212
}
209213

210214
}

0 commit comments

Comments
 (0)