UITableViewReloadDataUpdater

open class UITableViewReloadDataUpdater<Adapter> : Updater where Adapter : UITableViewAdapter

An updater for managing to perform reload data to render data to the UITableView.

  • Create a new updater.

    Declaration

    Swift

    public init()
  • Set the delegate and dataSource of given table view, then reload data.

    Declaration

    Swift

    open func prepare(target: UITableView, adapter: Adapter)

    Parameters

    target

    A target to be prepared.

    adapter

    An adapter to be set to delegate and dataSource.

  • Perform reload data to render given data to the target.

    Declaration

    Swift

    open func performUpdates(target: UITableView, adapter: Adapter, data: [Section])

    Parameters

    target

    A target instance to be updated to render given data.

    adapter

    An adapter holding currently rendered data.

    data

    A collection of sections to be rendered next.