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
anddataSource
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
anddataSource
. -
Perform reload data to render given data to the target.
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.