DiffableDataSource.CollectionView implementation

This commit is contained in:
John Estropia
2019-10-16 14:01:25 +09:00
parent 7932625644
commit 64a0264354
14 changed files with 383 additions and 90 deletions
+2 -2
View File
@@ -152,12 +152,12 @@ public final class LiveList<O: DynamicObject>: Hashable {
public func section(containingItem item: LiveObject<O>) -> SectionID? {
return self.snapshot.sectionIdentifier(containingItem: item.cs_id())
return self.snapshot.sectionIdentifier(containingItem: item.objectID())
}
public func indexOfItem(_ item: LiveObject<O>) -> Int? {
return self.snapshot.indexOfItem(item.cs_id())
return self.snapshot.indexOfItem(item.objectID())
}
public func indexOfSection(_ identifier: SectionID) -> Int? {