Instance Method

controllerDidChangeContent(_:)

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

Declaration

optional func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>)

Parameters

controller

The fetched results controller that sent the message.

Discussion

This method is invoked after all invocations of controller(_:didChange:at:for:newIndexPath:) and controller(_:didChange:atSectionIndex:for:) have been sent for a given change event (such as the controller receiving a NSManagedObjectContextDidSave notification).

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 controller(NSFetchedResultsController<NSFetchRequestResult>, didChangeContentWith: CollectionDifference<NSManagedObjectID>)

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

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.