This commit is contained in:
John Estropia
2026-07-15 11:50:43 +09:00
parent 7db1cfecfb
commit 890e150b95
135 changed files with 2895 additions and 2526 deletions
+7 -1
View File
@@ -218,6 +218,7 @@ extension DiffableDataSource {
public func itemID(for indexPath: IndexPath) -> O.ObjectID? {
return self.dispatcher.itemIdentifier(for: indexPath)
.map(O.ObjectID.init(managedObjectID:))
}
/**
@@ -228,7 +229,7 @@ extension DiffableDataSource {
*/
public func indexPath(for itemID: O.ObjectID) -> IndexPath? {
return self.dispatcher.indexPath(for: itemID)
return self.dispatcher.indexPath(for: itemID.managedObjectID)
}
/**
@@ -254,6 +255,11 @@ extension DiffableDataSource {
// MARK: Internal
internal let dispatcher: Internals.DiffableDataUIDispatcher<O>
internal func itemID(for indexPath: IndexPath) -> NSManagedObjectID? {
return self.dispatcher.itemIdentifier(for: indexPath)
}
}
}