UITableView

public extension UITableView
  • Reloads visibile cells

    Declaration

    Swift

    @objc
    func reloadVisibleCells()
  • Reload visible cells at indexPaths

    Declaration

    Swift

    @objc
    func reloadVisibleCells(at indexPaths: [IndexPath])

    Parameters

    indexPaths

    An array of indexPaths objects identifying the rows to reload.

TableView Scroll Helpers

  • Scrolls to first tableView row

    Declaration

    Swift

    @objc
    func scrollToFirstItem(animated: Bool = true)

    Parameters

    animated

    true if you want to animate the change in position; false if it should be immediate.

Remove Header

  • Removes header if tableView style is grouped

    Declaration

    Swift

    @objc
    func removeHeaderWhenGrouped()

TableView Registers

  • Registers cell to tableView

    Declaration

    Swift

    func registerCell(with cellIdentifier: String)

    Parameters

    cellIdentifier

    The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.

TableView Helpers

  • Hides empty cells at the bottom

    Declaration

    Swift

    @objc
    func hideEmptyCells()