TableViewDataSourceDelegate

public protocol TableViewDataSourceDelegate : AnyObject

Delegate protocol for a TableViewSource instance. Combines a NSFetchedResults object (Object) with a UITableViewCell instance (Cell).

  • Undocumented

    Declaration

    Swift

    associatedtype Entity : NSFetchRequestResult
  • Undocumented

    Declaration

    Swift

    associatedtype Cell : UITableViewCell
  • Create a representation of a managed object in the given cell

    Declaration

    Swift

    func configure(_ cell: Cell, for object: Entity)

    Parameters

    cell

    the view to render into

    object

    the object to render

  • Determine if this row can be deleted.

    Declaration

    Swift

    func canDelete(_ index: IndexPath) -> Bool

    Parameters

    index

    row index

    Return Value

    true if so

  • Delete the object at a given row.

    Declaration

    Swift

    func delete(_ obj: Entity, at: IndexPath)

    Parameters

    obj

    the object to delete

    at

    the row the object is in

  • Notification that the table was updated due to NSFetchResultsController activity

    Declaration

    Swift

    func updated()