InfiniteList
open class InfiniteList : UITableView
extension InfiniteList: UITableViewDelegate
extension InfiniteList: UITableViewDataSource
extension InfiniteList: UIScrollViewDelegate
InfiniteList is a list that can load infinite items.
Version
1.5.0Date
07/09/2019-
Delegate for action related to the InfiniteList.
Declaration
Swift
public weak var infiniteListDelegate: InfiniteListDelegate? -
Whether the list can be edited or not.
Declaration
Swift
public var isEditable: Bool -
The item amount of each page.
Declaration
Swift
public var pageSize: Int -
Define the nib file used to render an item cell.
Declaration
Swift
public func register(_ type: InfiniteCell.Type, with nib: UINib)Parameters
nibThe nib file.
typeThe item cell type.
-
Register the empty state view for the InfiniteList.
Declaration
Swift
public func registerEmptyState(with nib: UINib)Parameters
nibThe nib file containing the view.
-
Register the reload view for the InfiniteList. Or use UIRefreshControl if there is no UI requirement.
Declaration
Swift
public func registerReloadingBar(with nib: UINib)Parameters
nibThe nib file containing the view.
-
Register the load more cell for the InfiniteList.
Declaration
Swift
public func registerLoadingMoreCell(with nib: UINib)Parameters
nibThe nib file containing the cell.
-
Perform drag and reload function programmatically.
Declaration
Swift
public func startReloading() -
Display a list of item depending on the status of the InfiniteList.
Declaration
Swift
public func display(_ items: [InfiniteItem])Parameters
itemsThe item to be displayed.
-
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder) -
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) -
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int -
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell -
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool -
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) -
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) -
Undocumented
Declaration
Swift
public func scrollViewWillBeginDragging(_ scrollView: UIScrollView) -
Undocumented
Declaration
Swift
public func scrollViewDidScroll(_ scrollView: UIScrollView) -
Undocumented
Declaration
Swift
public func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool)
InfiniteList Class Reference