add Swift.Collection

This commit is contained in:
BiNo
2020-03-25 15:37:35 +01:00
parent 1d6674cf60
commit 74f554c2b9
+1 -1
View File
@@ -35,7 +35,7 @@ struct SnapshotStructure<SectionID: Hashable, ItemID: Hashable> {
self.init(id: id, items: [], isReloaded: false)
}
init<C: Collection>(source: Section, elements: C) where C.Element == Item {
init<C: Swift.Collection>(source: Section, elements: C) where C.Element == Item {
self.init(id: source.differenceIdentifier, items: Array(elements), isReloaded: source.isReloaded)
}