@DelawareMathGuy this is what I had to do to trigger the FRCDelegate but this goes against the FRC automatically doing it after the performFetch
fetchedResultsController?
.publisher(for: \.fetchedObjects)
.receive(on: OperationQueue.main)
.sink(receiveValue: { [weak self] data in
guard let self = self,
let data = data else { return }
for (index, object) in data.enumerated() {
let indexpath = IndexPath(item: index, section: 0)
if let controller = self.fetchedResultsController as? NSFetchedResultsController<NSFetchRequestResult> {
self.controller(controller, didChange: object,
at: nil,
for: .insert,
newIndexPath: indexpath)
}
}
}).store(in: &cancellables)