ItemsViewController

public final class ItemsViewController<Item>: UITableViewController

A generic implementation of a UITableViewController.

Based on objc.io’s Generic Table View Controllers.

  • Undocumented

    Declaration

    Swift

    public var didSelect: (Item) -> () = { _ in }
  • Undocumented

    Declaration

    Swift

    public init(items: [Item], cellDescriptor: @escaping (Item) -> TableViewCellDescriptor)
  • Undocumented

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    override public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
  • Undocumented

    Declaration

    Swift

    override public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    override public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell