We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0732c15 commit 6a74e0fCopy full SHA for 6a74e0f
1 file changed
Sources/BasicData/BasicDataSource.swift
@@ -34,8 +34,10 @@ public class BasicDataSource<Section>: DataSourceType where Section: SectionType
34
}
35
36
public func moveItem(at sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) {
37
+ var sections = self.sections
38
let item = sections[sourceIndexPath.section].items[sourceIndexPath.item]
39
sections[sourceIndexPath.section].items.remove(at: sourceIndexPath.item)
40
sections[destinationIndexPath.section].items.insert(item, at: destinationIndexPath.item)
41
+ self.sections = sections
42
43
0 commit comments