FetchedResultsDelegateProvider
public final class FetchedResultsDelegateProvider<CellConfig> where CellConfig : ReusableViewConfigProtocol
A FetchedResultsDelegateProvider is responsible for providing a delegate object for an instance of NSFetchedResultsController.
-
The parent view of cell’s that the cell configuration produces.
Declaration
Swift
public typealias ParentView = CellConfig.View.ParentView
-
The table view or collection view displaying data for the fetched results controller.
Declaration
Swift
public weak var cellParentView: CellConfig.View.ParentView? -
The cell configuration.
Declaration
Swift
public let cellConfig: CellConfig
-
Initializes a new fetched results delegate provider for collection views.
Declaration
Swift
public convenience init(cellConfig: CellConfig, collectionView: UICollectionView)Parameters
cellConfigThe cell configuration with which the fetched results controller delegate will configure cells.
collectionViewThe collection view to be updated when the fetched results change.
-
Returns the
NSFetchedResultsControllerDelegateobject for a collection view.Declaration
Swift
public var collectionDelegate: NSFetchedResultsControllerDelegate { get }
-
Initializes a new fetched results delegate provider for table views.
Declaration
Swift
public convenience init(cellConfig: CellConfig, tableView: UITableView)Parameters
cellConfigThe cell configuration with which the fetched results controller delegate will configure cells.
tableViewThe table view to be updated when the fetched results change.
-
Returns the
NSFetchedResultsControllerDelegateobject for a table view.Declaration
Swift
public var tableDelegate: NSFetchedResultsControllerDelegate { get }
View on GitHub
FetchedResultsDelegateProvider Class Reference