Instance Method

controller(_:didChangeContentWith:)

Notifies the receiver about changes to the content in the fetched results controller, by using a collection difference.

Declaration

optional func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChangeContentWith diff: CollectionDifference<NSManagedObjectID>)

Discussion

This method is only invoked if the controller’s sectionNameKeyPath property is nil and controller(_:didChangeContentWith:) is not implemented.

If this method is implemented, no other delegate methods are invoked.

See Also

Responding to Changes

func controller(NSFetchedResultsController<NSFetchRequestResult>, didChangeContentWith: NSDiffableDataSourceSnapshot)

Notifies the receiver about changes to the content in the fetched results controller, by using a diffable data source snapshot.

func controllerWillChangeContent(NSFetchedResultsController<NSFetchRequestResult>)

Notifies the receiver that the fetched results controller is about to start processing of one or more changes due to an add, remove, move, or update.

func controllerDidChangeContent(NSFetchedResultsController<NSFetchRequestResult>)

Notifies the receiver that the fetched results controller has completed processing of one or more changes due to an add, remove, move, or update.